[glib] tests: add format test case for noon hour in 12h mode



commit a437c5e768b9a62b550e174b25413ce9149fcdbe
Author: Ray Strode <rstrode redhat com>
Date:   Mon Jan 17 14:30:43 2011 -0500

    tests: add format test case for noon hour in 12h mode
    
    It currently displays it as "0" instead of "12", so this
    test case demonstrates the bug.

 glib/tests/gdatetime.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/gdatetime.c b/glib/tests/gdatetime.c
index 20f7cda..01f08de 100644
--- a/glib/tests/gdatetime.c
+++ b/glib/tests/gdatetime.c
@@ -784,11 +784,13 @@ GDateTime *__dt = g_date_time_new_local (2009, 10, 24, 0, 0, 0);\
   TEST_PRINTF ("%H", "00");
   TEST_PRINTF_TIME (15, 0, 0, "%H", "15");
   TEST_PRINTF ("%I", "12");
+  TEST_PRINTF_TIME (12, 0, 0, "%I", "12");
   TEST_PRINTF_TIME (15, 0, 0, "%I", "03");
   TEST_PRINTF ("%j", "297");
   TEST_PRINTF ("%k", " 0");
   TEST_PRINTF_TIME (13, 13, 13, "%k", "13");
   TEST_PRINTF ("%l", "12");
+  TEST_PRINTF_TIME (12, 0, 0, "%I", "12");
   TEST_PRINTF_TIME (13, 13, 13, "%l", " 1");
   TEST_PRINTF_TIME (10, 13, 13, "%l", "10");
   TEST_PRINTF ("%m", "10");



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