fmt/test
Nikhil Benesch 0a363f2b02
Allow use of "," format specifier as in Python
f68771a helpfully enabled the "n" typecode for locale-aware printing of
integers, but not for floats. This commit enables the use of "n" for
locale-aware printing of floats, as in Python, and additionally
introduces the "," format specifier, which can be applied to "d", "f",
and "g" (and their upper-case variants, when present) to force
locale-aware grouping.

"," is particularly useful for floats, as "n" will use exponential
notation for large floats, while ",f" never will.

Unlike in Python, there is no distinction between ",d" and "n" for
integers, or ",g" and "n" for floats. (In Python, "," will always output
a literal comma, while "n" is locale-aware.) In fmtlib, both "," and "n"
are locale-aware.
2016-07-21 18:22:17 -04:00
..
add-subdirectory-test cppformat -> fmt 2016-04-24 09:06:12 -07:00
compile-test Fix FMT_STATIC_ASSERT compile test 2016-05-04 00:36:48 +02:00
find-package-test cppformat -> fmt 2016-04-24 09:06:12 -07:00
gmock Workaround an issue with "delete this" in GMock and gcc 6.1.1 2016-05-14 17:58:14 -07:00
gtest Move gmock into test/ 2016-02-10 07:16:49 -08:00
assert-test.cc cppformat -> fmt 2016-04-24 09:06:12 -07:00
CMakeLists.txt Workaround broken MinGW installation on AppVeyor (#355) 2016-07-16 08:00:53 -07:00
custom-formatter-test.cc Make printf argument formatters public (#335, #360) 2016-07-21 06:59:28 -07:00
format-impl-test.cc Implemented #335: custom printf support 2016-06-09 08:41:56 -07:00
format-test.cc Allow use of "," format specifier as in Python 2016-07-21 18:22:17 -04:00
gmock-gtest-all.cc Move gmock into test/ 2016-02-10 07:16:49 -08:00
gtest-extra-test.cc Move format_system_error to the public API (#323) 2016-05-13 07:19:39 -06:00
gtest-extra.cc Move format_system_error to the public API (#323) 2016-05-13 07:19:39 -06:00
gtest-extra.h Use a mock to test locale support 2016-05-19 17:38:44 -07:00
header-only-test2.cc cppformat -> fmt 2016-04-24 09:06:12 -07:00
header-only-test.cc cppformat -> fmt 2016-04-24 09:06:12 -07:00
macro-test.cc cppformat -> fmt 2016-04-24 09:06:12 -07:00
mock-allocator.h Test buffer 2014-10-01 08:12:10 -07:00
ostream-test.cc Move ostream support to ostream.{h,cc} 2016-05-06 07:37:20 -07:00
posix-mock-test.cc Use a mock to test locale support 2016-05-19 17:38:44 -07:00
posix-mock.h Refactor posix tests 2015-06-24 08:43:30 -07:00
posix-test.cc Fix -Wpessimizing-move 2016-06-14 15:53:40 -07:00
printf-test.cc check -> const_check to avoid a conflict with AssertMacros.h (#350) 2016-07-12 06:40:23 -07:00
string-test.cc Fix handling of wide strings in StringWriter 2016-07-18 08:47:11 -07:00
test-assert.h Fix assertion tests 2015-06-22 09:24:54 -07:00
test-main.cc Correct comment 2016-01-09 08:06:59 -08:00
util-test.cc Fix clang warning 2016-06-14 15:42:32 -07:00
util.cc Fix open_buffered_file 2015-07-08 07:48:54 -07:00
util.h Move ostream support to ostream.{h,cc} 2016-05-06 07:37:20 -07:00