aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2019-12-02Add a missing decimal point in exponent notation with trailing zerosVictor Zverovich
2019-11-30Fix dangling else problem in FMT_ASSERTVictor Zverovich
2019-11-29Remove dependency on <cassert>Victor Zverovich
2019-11-29Fix handling of missing fraction in snprintf_floatVictor Zverovich
2019-11-29Fix fallback pointer formatting on big endianVictor Zverovich
2019-11-27Add missing newlineVictor Zverovich
2019-11-27Refactor floating-point formattingVictor Zverovich
2019-11-26float_spec -> float_specsVictor Zverovich
2019-11-26Enable -Wswitch-enum in CIVictor Zverovich
2019-11-25Fix handling of streamable and convertible to string typesVictor Zverovich
2019-11-25Fix hexfloat buffer reallocationVictor Zverovich
2019-11-25Fix handling of types with deleted rvalue conversion to string (#1421)Victor Zverovich
2019-11-24Remove fp::operator-Victor Zverovich
2019-11-24Simplify Grisu implementationVictor Zverovich
2019-11-24Don't print trailing zero with fixed, precision=0, and showpoint (#1417)Victor Zverovich
2019-11-24Handle null terminator at the end of the bufferVictor Zverovich
2019-11-23Integrate Grisu and sprintf digit generatorsVictor Zverovich
2019-11-22Refactor floating-point formattingVictor Zverovich
2019-11-20Merge write_fp into writeVictor Zverovich
2019-11-19Use grisu for exponent notationVictor Zverovich
2019-11-19Deprecate the fmt macroVictor Zverovich
2019-11-19test: add default constructor for a const valueLeon Klingele
This fixed a compilation error of the OS X 10.11.6 C++ compiler: ./fmt/test/format-test.cc:1861:16: error: default initialization of an object of const type 'const Answer' without a user-provided default constructor const Answer const_answer; ^ {}
2019-11-18Make % an opt-in to improve compatibility with std::formatVictor Zverovich
2019-11-18Refactor float spec parsingVictor Zverovich
2019-11-17Don't use POSIX API on UWPVictor Zverovich
2019-11-15Improve POSIX API detectionVictor Zverovich
2019-11-14Move has_formatter into the public fmt namespace. (#1407)David P. Sicilia
* Move has_formatter into the public fmt namespace. This will allow users to do SFINAE-friendly checks for the formattability of a type. Fixes #1369
2019-11-05Use grouping() from locale for specifier 'n'daniel
2019-11-03Fix UTF-8 truncationAttila Tajti
2019-11-01Workaround X11 madness (#1388)Victor Zverovich
2019-10-28Don't emit trailing zeros in exponential notation (#1376)Victor Zverovich
2019-10-21Optimize countingVictor Zverovich
2019-10-20Initialize all the thingsVictor Zverovich
2019-10-20Handle assymetric boundariesVictor Zverovich
2019-10-18Fix computing lower boundaries for smallest normalized doubleVictor Zverovich
2019-10-18Implement round half to evenVictor Zverovich
2019-10-18Support single precision floats in grisu formattingOrivej Desh
Fixes #1336
2019-10-13Handle negative exponent and nonnegative powerVictor Zverovich
2019-10-13Handle negative exponent and rename value/pow10 to numerator/denominatorVictor Zverovich
2019-10-13Partially implement (FPP)^2Victor Zverovich
2019-10-13Implement add_compareVictor Zverovich
2019-10-12Rename write_double to write_fpOrivej Desh
It handles all floating point types, not just doubles.
2019-10-12Distinguish float from doubleOrivej Desh
2019-10-12Implement more comparison operatorsVictor Zverovich
2019-10-11 Add defaulted copy and move operations to format_error and system_error ↵Deniz Evrenci
(#1347) * Avoid weak vtables by providing a private virtual member function * Add warning Wweak-vtables to clang when FMT_PEDANTIC is on * Add defaulted copy and move operations to format_error and system_error Compiler generated copy operations are deprecated and move operations are not generated altogether. * Add warning Wdeprecated to clang when FMT_PEDANTIC is on
2019-10-09Implement divmodVictor Zverovich
2019-10-08Fix undefined in format-test (#1349)Orivej Desh
When `MoveCtor` performs `check_move_buffer`, the buffer allocator becomes null, but then `MoveCtor` attempts to use it to allocate a dynamic buffer. This succeeds nevertheless because a typical `std::allocator<char>::allocate` does not use `this`, so it does not crash when `this` is null. Fixes #1344
2019-10-08Fix undefined in core-test and printf-test (#1345)Orivej Desh
* Fix undefined in core-test Fixes "reference binding to null pointer" in BufferTest.Ctor buffer.operator[] attempts to return a reference to `buffer.ptr_[0]` when `ptr_` in `mock_buffer<int> buffer` is null. * Fix undefined in printf-test Fixes "signed integer overflow" in PrintfTest.Length This occurs in `TestLength<long long>("ll")`, since its minimum value minus one does not fit in long long. * Fix undefined in printf %0$ Printf counts arguments from 1. Fixes "shift exponent -4 is negative" in PrintfTest.InvalidArgIndex. `do_get` is called with index -1 when `basic_printf_context.arg` is called with id 4294967295 when basic_printf_context::get_arg subtracts 1 from arg_index 0 in the format string "%0$d".
2019-10-06Implement more bigint operationsVictor Zverovich
2019-10-05Initial implementation of squareVictor Zverovich