summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2021-02-15 13:25:41 +0100
committerRoland Reichwein <mail@reichwein.it>2021-02-15 13:25:41 +0100
commit6a34acab3d407e158599573677026677f93607bf (patch)
treebf4d568032451990fbcb8146078356a7e018fda4
parented61b409f544ef68885dec5617bd37748ec018ad (diff)
Fix test for MSVC
-rw-r--r--src/test-unicode.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/test-unicode.cpp b/src/test-unicode.cpp
index fbd4749..65ab5a2 100644
--- a/src/test-unicode.cpp
+++ b/src/test-unicode.cpp
@@ -38,11 +38,12 @@ std::vector<types_collection_type> success_sets {
// Error cases: throwing upon convert to all other types
std::vector<std::basic_string<utf8_t>> failure_strings_char8_t {
- u8"\x80", // utf-8 continuation byte
- u8"\x81", // utf-8 continuation byte
- u8"\xc3\xc3\xa4", // initial byte of utf-8 "ä", followed by valid utf-8 "ä"
- u8"\xF8\x80\x80\x80\x80", // overlong encoding
- u8"\xF7\xBF\xBF\xBF", // valid encoding of invalid code point
+ // using u8"" here doesn't work on MSVC
+ "\x80", // utf-8 continuation byte
+ "\x81", // utf-8 continuation byte
+ "\xc3\xc3\xa4", // initial byte of utf-8 "ä", followed by valid utf-8 "ä"
+ "\xF8\x80\x80\x80\x80", // overlong encoding
+ "\xF7\xBF\xBF\xBF", // valid encoding of invalid code point
};
std::vector<std::basic_string<char16_t>> failure_strings_char16_t {