strftime-tests: also test nanoseconds
authorAlex Nelson <ajnelson@cs.ucsc.edu>
Wed, 14 Dec 2011 02:52:59 +0000 (18:52 -0800)
committerEric Blake <eblake@redhat.com>
Wed, 14 Dec 2011 16:07:49 +0000 (09:07 -0700)
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 <ajnelson@cs.ucsc.edu>
ChangeLog
tests/test-strftime.c

index 6c2a807..262eeaf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
+
+       strftime-tests: also test nanoseconds
+       * tests/test-strftime.c (T): Add a test of %N.
+
 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
 
        inttypes, stdint: add C++11 support
index 2578550..23c3952 100644 (file)
@@ -38,6 +38,7 @@ struct posixtm_test
 static struct posixtm_test const T[] =
   {
     { 1300000000, 0,            "%F", "2011-03-13" },
+    { 0,          10,           "%T.%N", "00:00:00.000000010" },
     { 0,          0,            NULL, NULL }
   };