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:
committed by
Michael Steenbeek
parent
676bb47948
commit
6c26009f19
@@ -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", ""),
|
||||
|
||||
Reference in New Issue
Block a user