From d096fedc556ff4bb30dac479bb490b128cbaf8a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 30 Oct 2026 18:41:41 +0100 Subject: [PATCH] test-gunicode: convert to new ASSERT macros Replace assert_se() with the typed ASSERT_* macros throughout, so that a failing assertion logs the values involved. --- src/test/test-gunicode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/test-gunicode.c b/src/test/test-gunicode.c index 1836cdc04ad..4a9287722b0 100644 --- a/src/test/test-gunicode.c +++ b/src/test/test-gunicode.c @@ -12,15 +12,15 @@ TEST(unichar_iswide) { for (const char *narrow = "abX_โ€ฆฤ…ฤ™ยต!" "๐Ÿ˜ผ๐Ÿ˜ฟ๐Ÿ™€๐Ÿ˜ธ๐Ÿ˜ป"; *narrow; narrow += r) { r = utf8_encoded_to_unichar(narrow, &c); bool w = unichar_iswide(c); - assert_se(r > 0); - assert_se(!w); + ASSERT_OK_POSITIVE(r); + ASSERT_FALSE(w); } for (const char *wide = "๐Ÿฑ๏ผ๏ฟฅ"; *wide; wide += r) { r = utf8_encoded_to_unichar(wide, &c); bool w = unichar_iswide(c); - assert_se(r > 0); - assert_se(w); + ASSERT_OK_POSITIVE(r); + ASSERT_TRUE(w); } }