Skip to content

Commit

Permalink
[Test] Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Oct 3, 2022
1 parent e5328bd commit 97a5a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libutil/cxx/utf8_util.cxx
Expand Up @@ -230,7 +230,7 @@ TEST_CASE("utf8 normalise") {
/* Special case of diacritic */
{"13_\u0020\u0308\u0301\u038e\u03ab", "13_ ̈́ΎΫ", RSPAMD_UNICODE_NORM_UNNORMAL},
/* Same with zw spaces */
{"13\u200C_\u0020\u0308\u0301\u038e\u03ab\u200D", "13_ ̈́ΎΫ",
{"13\u200C_\u0020\u0308\u0301\u038e\u03ab", "13_ ̈́ΎΫ",
RSPAMD_UNICODE_NORM_UNNORMAL|RSPAMD_UNICODE_NORM_ZERO_SPACES},
/* Buffer overflow case */
{"u\xC2\xC2\xC2\xC2\xC2\xC2""abcdef""abcdef", "u\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD",
Expand Down

0 comments on commit 97a5a0f

Please sign in to comment.