bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] test-strftime: Test nanosecond display


From: Alex Nelson
Subject: [PATCH] test-strftime: Test nanosecond display
Date: Tue, 13 Dec 2011 18:52:59 -0800

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.

Signed-off-by: Alex Nelson <address@hidden>
---
 tests/test-strftime.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tests/test-strftime.c b/tests/test-strftime.c
index 2578550..23c3952 100644
--- a/tests/test-strftime.c
+++ b/tests/test-strftime.c
@@ -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 }
   };
 
-- 
1.7.6.4





reply via email to

[Prev in Thread] Current Thread [Next in Thread]