Corrected last commit (UTF-8 case conversion) and added more test coverage.

This commit is contained in:
Matthias Koefferlein 2018-07-13 01:13:41 +02:00
parent 70a4bd7aa2
commit abdde4ba19
2 changed files with 3769 additions and 3769 deletions

File diff suppressed because it is too large Load Diff

View File

@ -490,6 +490,6 @@ TEST(15)
EXPECT_EQ (tl::to_wstring (std::string ("Ä")).size (), size_t (1));
EXPECT_EQ (tl::to_string (tl::to_wstring ("Utf8 supports emoticons: \xF0\x9F\x98\x81\nand Umlauts: äüö")).c_str (), "Utf8 supports emoticons: \xF0\x9F\x98\x81\nand Umlauts: äüö");
EXPECT_EQ (tl::to_upper_case ("äÄüÜöÖß"), "ÄÄÜÜÖÖß");
EXPECT_EQ (tl::to_lower_case ("äÄüÜöÖß"), "ääüüööß");
EXPECT_EQ (tl::to_upper_case ("nOrMal(äÄüÜöÖß-42°+6€)"), "NORMAL(ÄÄÜÜÖÖß-42°+6€)");
EXPECT_EQ (tl::to_lower_case ("nOrMal(äÄüÜöÖß-42°+6€)"), "normal(ääüüööß-42°+6€)");
}