diff options
-rw-r--r-- | config.mak | 1 | ||||
-rw-r--r-- | snprintf.c | 8 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,4 @@ CFLAGS += -Wall -Wno-overflow -Wno-unused -Wno-format CFLAGS += -DHAVE_BSD_STRL CFLAGS += -DDISABLE_SLOW_TESTS +#LDFLAGS += -L/home/dalias/musl-test/lib @@ -69,6 +69,14 @@ static const struct { { "%.4f", 1.06125, "1.0612" }, { "%.2f", 1.375, "1.38" }, { "%.1f", 1.375, "1.4" }, + { "%.15f", 1.1, "1.100000000000000" }, + { "%.16f", 1.1, "1.1000000000000001" }, + { "%.17f", 1.1, "1.10000000000000009" }, + { "%.2e", 1500001.0, "1.50e+06" }, + { "%.2e", 1505000.0, "1.50e+06" }, + { "%.2e", 1505000.00000095367431640625, "1.51e+06" }, + { "%.2e", 1505001.0, "1.51e+06" }, + { "%.2e", 1506000.0, "1.51e+06" }, /* correctness in DBL_DIG places */ { "%.15g", 1.23456789012345, "1.23456789012345" }, |