summaryrefslogtreecommitdiffhomepage
path: root/src/test-unicode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test-unicode.cpp')
-rw-r--r--src/test-unicode.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test-unicode.cpp b/src/test-unicode.cpp
index 948dbcc..0b5ced7 100644
--- a/src/test-unicode.cpp
+++ b/src/test-unicode.cpp
@@ -141,6 +141,15 @@ std::vector<std::basic_string<utf8_t>> failure_strings_char8_t {
(utf8_t*)"text1\xc3\xc3\xa4text3",
(utf8_t*)"text1\xc3text2\xc3\xa4",
+ (utf8_t*)"\xff",
+ (utf8_t*)"\xff\xff",
+ (utf8_t*)"\xff\xff\xff",
+ (utf8_t*)"\xff\xff\xff\xff",
+ (utf8_t*)"\xff\xff\xff\xff\xff",
+ (utf8_t*)"\xff\xff\xff\xff\xff\xff",
+ (utf8_t*)"\xff\xff\xff\xff\xff\xff\xff",
+ (utf8_t*)"\xff\xff\xff\xff\xff\xff\xff\xff",
+
(utf8_t*)"\xF8\x80\x80\x80\x80", // overlong encoding of valid code point
(utf8_t*)"text1\xF8\x80\x80\x80\x80text2",
(utf8_t*)"\xF8\x80\x80\x80\x80text2",