From 159a3b26ab65b5a001925a547de906a84e95843c Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval R Date: Thu, 14 Jul 2022 12:40:33 +0200 Subject: test-gl-util: Use figure space in tests Changed since https://gitlab.gnome.org/GNOME/glib/-/commit/7169f6e1e58a53e4b69e5d40f3fd192dd9cd8ed4. --- tests/test-gl-util.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/test-gl-util.c b/tests/test-gl-util.c index abfcb16..8445bdf 100644 --- a/tests/test-gl-util.c +++ b/tests/test-gl-util.c @@ -33,6 +33,21 @@ util_timestamp_to_display (void) { /* Test three cases for each format (same day, same year, different year */ +#if GLIB_CHECK_VERSION (2, 73, 1) + /* The space is a FIGURE SPACE (U+2007) */ + { G_GUINT64_CONSTANT (1423486800000000), GL_UTIL_CLOCK_FORMAT_12HR, + "\u20071:00 PM" }, + { G_GUINT64_CONSTANT (1423402200000000), GL_UTIL_CLOCK_FORMAT_12HR, + "Feb \u20078 \u20071:30 PM" }, + { G_GUINT64_CONSTANT (1391952600000000), GL_UTIL_CLOCK_FORMAT_12HR, + "Feb \u20079 2014 \u20071:30 PM" }, + { G_GUINT64_CONSTANT (1423486800000000), GL_UTIL_CLOCK_FORMAT_24HR, + "13:00" }, + { G_GUINT64_CONSTANT (1423402200000000), GL_UTIL_CLOCK_FORMAT_24HR, + "Feb \u20078 13:30" }, + { G_GUINT64_CONSTANT (1391952600000000), GL_UTIL_CLOCK_FORMAT_24HR, + "Feb \u20079 2014 13:30" } +#else { G_GUINT64_CONSTANT (1423486800000000), GL_UTIL_CLOCK_FORMAT_12HR, " 1:00 PM" }, { G_GUINT64_CONSTANT (1423402200000000), GL_UTIL_CLOCK_FORMAT_12HR, @@ -45,6 +60,7 @@ util_timestamp_to_display (void) "Feb 8 13:30" }, { G_GUINT64_CONSTANT (1391952600000000), GL_UTIL_CLOCK_FORMAT_24HR, "Feb 9 2014 13:30" } +#endif }; now = g_date_time_new_utc (2015, 2, 9, 13, 30, 42); -- cgit v1.2.1