# HG changeset patch # User Alex Nelson # Date 1323831179 28800 # Node ID c155aeb8c42ea0b8bf0ca8f5abf8341a21515f03 # Parent 8151b33f4264f41e93e999b9817f141532ba13e9 strftime-tests: also test nanoseconds The test-strftime program did not test the display of nanoseconds. This patch clarifies the expected output for a number of nanoseconds with trailing zeroes. * tests/test-strftime.c (T): Add a test of %N. Signed-off-by: Alex Nelson diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-12-14 Alex Nelson (tiny change) + + strftime-tests: also test nanoseconds + * tests/test-strftime.c (T): Add a test of %N. + 2011-12-13 Paul Eggert inttypes, stdint: add C++11 support diff --git a/tests/test-strftime.c b/tests/test-strftime.c --- a/tests/test-strftime.c +++ b/tests/test-strftime.c @@ -38,6 +38,7 @@ static struct posixtm_test const T[] = { { 1300000000, 0, "%F", "2011-03-13" }, + { 0, 10, "%T.%N", "00:00:00.000000010" }, { 0, 0, NULL, NULL } };