summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2021-11-15 10:40:42 +0100
committerRoland Reichwein <mail@reichwein.it>2021-11-15 10:40:42 +0100
commitdd685fb0bd6726038c863a69037cc30a7294ffcf (patch)
treeb0716227f779bf048d828bd8d38ca0fa712d1af8 /src
parent089ebb0f38ff3b26397a1d5685a9bf8c69af1fdb (diff)
Build w/ C++20
Diffstat (limited to 'src')
-rw-r--r--src/test-unicode.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test-unicode.cpp b/src/test-unicode.cpp
index 65ab5a2..9c68c59 100644
--- a/src/test-unicode.cpp
+++ b/src/test-unicode.cpp
@@ -37,7 +37,7 @@ 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 {
+std::vector<std::basic_string<iso_t>> failure_strings_char8_t {
// using u8"" here doesn't work on MSVC
"\x80", // utf-8 continuation byte
"\x81", // utf-8 continuation byte
@@ -364,7 +364,7 @@ BOOST_AUTO_TEST_CASE(convert)
BOOST_CHECK_THROW(((void)std::string{unicode::convert<unicode::ISO_8859_15,unicode::ISO_8859_1>("\xa4")}), std::invalid_argument); // € not available in ISO-8859-1
- BOOST_CHECK((unicode::convert<unicode::UTF_8,unicode::UTF_16>("abc")) == std::u16string{u"abc"});
+ BOOST_CHECK((unicode::convert<unicode::UTF_8,unicode::UTF_16>(u8"abc")) == std::u16string{u"abc"});
BOOST_CHECK((unicode::convert<unicode::UTF_32,unicode::UTF_16>(U"abc")) == std::u16string{u"abc"});
BOOST_CHECK((unicode::convert<utf8_t,char16_t>("abc")) == std::u16string{u"abc"});
@@ -385,7 +385,7 @@ BOOST_AUTO_TEST_CASE(convert)
BOOST_CHECK((unicode::convert<char, wchar_t>(u8"\u732b")) == std::wstring{L"\u732b"});
BOOST_CHECK((unicode::convert<char, wchar_t>(u8"\U0001F63A")) == std::wstring{L"\U0001F63A"});
BOOST_CHECK((unicode::convert<wchar_t, char32_t>(L"\U0001F63A")) == std::u32string{U"\U0001F63A"});
- BOOST_CHECK((unicode::convert<wchar_t, char>(L"\U0001F63A")) == std::string{u8"\U0001F63A"});
+ BOOST_CHECK((unicode::convert<wchar_t, utf8_t>(L"\U0001F63A")) == std::u8string{u8"\U0001F63A"});
BOOST_CHECK((unicode::convert<std::string, std::wstring>(std::string{"äöü"})) == std::wstring{L"äöü"});