tests: fix test of function utf8_strlen_screen on Han char (U+24B62)

This commit is contained in:
Sébastien Helleu 2018-06-02 14:42:29 +02:00
parent 53fedfe4e6
commit 49253bd4d9

View File

@ -378,8 +378,7 @@ TEST(Utf8, Size)
LONGS_EQUAL(1, utf8_strlen_screen ("A")); LONGS_EQUAL(1, utf8_strlen_screen ("A"));
LONGS_EQUAL(1, utf8_strlen_screen ("ë")); LONGS_EQUAL(1, utf8_strlen_screen ("ë"));
LONGS_EQUAL(1, utf8_strlen_screen ("")); LONGS_EQUAL(1, utf8_strlen_screen (""));
/* this test does not work on Ubuntu Precise: it returns 2 instead of 1 */ LONGS_EQUAL(2, utf8_strlen_screen (han_char));
/*LONGS_EQUAL(1, utf8_strlen_screen (han_char));*/
LONGS_EQUAL(1, utf8_strlen_screen ("\x7f")); LONGS_EQUAL(1, utf8_strlen_screen ("\x7f"));
} }