From 6a34acab3d407e158599573677026677f93607bf Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Mon, 15 Feb 2021 13:25:41 +0100 Subject: Fix test for MSVC --- src/test-unicode.cpp | 11 ++++++----- 1 file 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 success_sets { // Error cases: throwing upon convert to all other types std::vector> 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> failure_strings_char16_t { -- cgit v1.2.3