summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2021-12-23 13:27:34 +0100
committerRoland Reichwein <mail@reichwein.it>2021-12-23 13:27:34 +0100
commit721064dc293d8915fbb33d83bd983a40dcca180f (patch)
tree3259680f1b4d46ef98030aae5b0b3cc89ae49396 /src
parentcd7e832e2f47fa35d36794808582118cb34eca3f (diff)
Speed optimization
Diffstat (limited to 'src')
-rw-r--r--src/test-unicode.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test-unicode.cpp b/src/test-unicode.cpp
index 59d55b9..d638cbb 100644
--- a/src/test-unicode.cpp
+++ b/src/test-unicode.cpp
@@ -566,6 +566,9 @@ BOOST_AUTO_TEST_CASE(convert)
// deque
BOOST_CHECK((unicode::convert<std::deque<char>, std::deque<wchar_t>>(std::deque<char>{})) == std::deque<wchar_t>{});
BOOST_CHECK((unicode::convert<std::deque<char>, std::deque<wchar_t>>(std::deque<char>{'\xc3', '\xa4', '\xc3', '\xb6', '\xc3', '\xbc'})) == (std::deque<wchar_t>{L'ä', L'ö', L'ü'}));
+ // yet unsupported:
+ //BOOST_CHECK((unicode::convert<utf8_t, char16_t>(std::deque<utf8_t>{u8'\xc3', u8'\xa4', u8'\xc3', u8'\xb6', u8'\xc3', u8'\xbc'})) == (std::deque<char16_t>{u'ä', u'ö', u'ü'}));
+ //BOOST_CHECK((unicode::convert<unicode::UTF_8, unicode::UTF_16>(std::deque<utf8_t>{u8'\xc3', u8'\xa4', u8'\xc3', u8'\xb6', u8'\xc3', u8'\xbc'})) == (std::deque<char16_t>{u'ä', u'ö', u'ü'}));
// deque with uint8_t, uint16_t
BOOST_CHECK((unicode::convert<std::deque<uint8_t>, std::deque<uint16_t>>(std::deque<uint8_t>{})) == std::deque<uint16_t>{});