1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-01 11:15:13 +01:00

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
2017-12-23 02:39:09 +01:00
committed by Michael Steenbeek
parent 676bb47948
commit 6c26009f19
2 changed files with 10 additions and 2 deletions

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", ""),