summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-06-02 14:42:29 +0200
committerSébastien Helleu <flashcode@flashtux.org>2018-06-02 14:42:29 +0200
commit49253bd4d975d129f2a3e6376173f94adb606da5 (patch)
tree226bf9c3df89f2a279bf34d6cb4a34a6299924a0
parent53fedfe4e61dd5cf02b822af553ff4767d9034e2 (diff)
downloadweechat-49253bd4d975d129f2a3e6376173f94adb606da5.zip
tests: fix test of function utf8_strlen_screen on Han char (U+24B62)
-rw-r--r--tests/unit/core/test-utf8.cpp3
1 files changed, 1 insertions, 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"));
}