mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-28 00:16:15 +01:00
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:
parent
43ac055a46
commit
f1916032e4
@ -1812,6 +1812,15 @@ test_modifiers (void)
|
|||||||
TEST_PRINTF_TIME ( 1, 0, 0, "%-k", "1");
|
TEST_PRINTF_TIME ( 1, 0, 0, "%-k", "1");
|
||||||
TEST_PRINTF_TIME ( 1, 0, 0, "%0k", "01");
|
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));
|
oldlocale = g_strdup (setlocale (LC_ALL, NULL));
|
||||||
setlocale (LC_ALL, "fa_IR.utf-8");
|
setlocale (LC_ALL, "fa_IR.utf-8");
|
||||||
#ifdef HAVE_LANGINFO_OUTDIGIT
|
#ifdef HAVE_LANGINFO_OUTDIGIT
|
||||||
|
Loading…
Reference in New Issue
Block a user