tests: Add tests for modifiers for GDateTime’s %l placeholder

They were missing.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Helps: #2655
This commit is contained in:
Philip Withnall 2022-06-20 14:25:06 +01:00
parent 43ac055a46
commit f1916032e4

View File

@ -1812,6 +1812,15 @@ test_modifiers (void)
TEST_PRINTF_TIME ( 1, 0, 0, "%-k", "1");
TEST_PRINTF_TIME ( 1, 0, 0, "%0k", "01");
TEST_PRINTF_TIME ( 1, 0, 0, "%l", " 1");
TEST_PRINTF_TIME ( 1, 0, 0, "%_l", " 1");
TEST_PRINTF_TIME ( 1, 0, 0, "%-l", "1");
TEST_PRINTF_TIME ( 1, 0, 0, "%0l", "01");
TEST_PRINTF_TIME (23, 0, 0, "%l", "11");
TEST_PRINTF_TIME (23, 0, 0, "%_l", "11");
TEST_PRINTF_TIME (23, 0, 0, "%-l", "11");
TEST_PRINTF_TIME (23, 0, 0, "%0l", "11");
oldlocale = g_strdup (setlocale (LC_ALL, NULL));
setlocale (LC_ALL, "fa_IR.utf-8");
#ifdef HAVE_LANGINFO_OUTDIGIT