1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

api: fix handle of invalid escape in function string_convert_escaped_chars()

And a new test is now checking that "\" returns "".
This commit is contained in:
Sébastien Helleu
2015-08-24 11:05:31 +02:00
parent c8ac75601f
commit 41cb1bf635
3 changed files with 8 additions and 3 deletions
+1
View File
@@ -460,6 +460,7 @@ TEST(String, ConvertEscapedChars)
WEE_TEST_STR(NULL, string_convert_escaped_chars (NULL));
WEE_TEST_STR("", string_convert_escaped_chars (""));
WEE_TEST_STR("", string_convert_escaped_chars ("\\"));
WEE_TEST_STR("\"", string_convert_escaped_chars ("\\\""));
WEE_TEST_STR("\\", string_convert_escaped_chars ("\\\\"));
WEE_TEST_STR("\a", string_convert_escaped_chars ("\\a"));