From a437c5e768b9a62b550e174b25413ce9149fcdbe Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Mon, 17 Jan 2011 14:30:43 -0500 Subject: [PATCH] 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 file changed, 2 insertions(+) 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"); -- 2.7.4