Fix #6097: String::Trim wasn't taking multibyte chars into account.

Extends StringTest with multibyte tests.
NB: ストリング is a katakana transcription of 'string'.
This commit is contained in:
Aaron van Geffen authored and Michael Steenbeek committed 2017-12-25 00:30:21 +01:00
1 parent 676bb47948
commit 6c26009f19
2 files changed
+10 -2

No files matched your search

+2
View File
@@ -16,6 +16,8 @@ INSTANTIATE_TEST_CASE_P(TrimData, StringTest, testing::Values(
TCase("string ", "string"),
TCase(" some string ", "some string"),
TCase(" ", ""),
TCase(" ストリング", "ストリング"),
TCase("ストリング ", "ストリング"),
TCase("", ""),
TCase("\n", ""),
TCase("\n\n\n\r\n", ""),