From 7818e0896424e00f89a9a72eb7fd548f12a8fd49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 10 Dec 2014 21:15:40 +0100 Subject: [PATCH] tests: fix compilation of tests with clang (closes #275) --- ChangeLog.asciidoc | 1 + tests/unit/core/test-string.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog.asciidoc b/ChangeLog.asciidoc index 93954eb70..3dfce9828 100644 --- a/ChangeLog.asciidoc +++ b/ChangeLog.asciidoc @@ -64,6 +64,7 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] * core: fix translation of message displayed after /upgrade * api: fix truncated process output in hook_process() (closes #266) * api: fix crash when reading config options with NULL value (closes #238) +* tests: fix compilation of tests with clang (closes #275) * irc: add missing server options "sasl_timeout" and "notify" in output of /server listfull * irc: use option irc.look.nick_mode_empty to display nick prefix in bar item diff --git a/tests/unit/core/test-string.cpp b/tests/unit/core/test-string.cpp index a22599b29..67bb99267 100644 --- a/tests/unit/core/test-string.cpp +++ b/tests/unit/core/test-string.cpp @@ -405,8 +405,8 @@ TEST(String, ConvertEscapedChars) string_convert_escaped_chars ("\\0123")); /* invalid */ WEE_TEST_STR("\x41", string_convert_escaped_chars ("\\x41")); WEE_TEST_STR("\x04z", string_convert_escaped_chars ("\\x4z")); - WEE_TEST_STR("\u0012zz", string_convert_escaped_chars ("\\u12zz")); - WEE_TEST_STR("\U00123456", string_convert_escaped_chars ("\\U00123456")); + WEE_TEST_STR(" zz", string_convert_escaped_chars ("\\u20zz")); + WEE_TEST_STR("\U00012345", string_convert_escaped_chars ("\\U00012345")); WEE_TEST_STR("\U00000123zzz", string_convert_escaped_chars ("\\U00123zzz")); WEE_TEST_STR("",