From 49253bd4d975d129f2a3e6376173f94adb606da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 2 Jun 2018 14:42:29 +0200 Subject: tests: fix test of function utf8_strlen_screen on Han char (U+24B62) --- tests/unit/core/test-utf8.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/unit/core/test-utf8.cpp b/tests/unit/core/test-utf8.cpp index 51dde9070..435de65ce 100644 --- a/tests/unit/core/test-utf8.cpp +++ b/tests/unit/core/test-utf8.cpp @@ -378,8 +378,7 @@ TEST(Utf8, Size) LONGS_EQUAL(1, utf8_strlen_screen ("A")); 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(1, utf8_strlen_screen (han_char));*/ + LONGS_EQUAL(2, utf8_strlen_screen (han_char)); LONGS_EQUAL(1, utf8_strlen_screen ("\x7f")); } -- cgit v1.2.3