mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 08:12:53 +01:00
Add test cases for updated logical sort (#13143)
This commit is contained in:
@@ -170,4 +170,10 @@ TEST_F(StringTest, strlogicalcmp)
|
||||
EXPECT_LT(strlogicalcmp("a", "B"), 0);
|
||||
EXPECT_GT(strlogicalcmp("B", "a"), 0);
|
||||
EXPECT_GT(strlogicalcmp("b", "A"), 0);
|
||||
|
||||
// ^ is used at the start of a ride name to move it to the end of the list
|
||||
EXPECT_LT(strlogicalcmp("A", "^"), 0);
|
||||
EXPECT_LT(strlogicalcmp("a", "^"), 0);
|
||||
EXPECT_LT(strlogicalcmp("!", "A"), 0);
|
||||
EXPECT_LT(strlogicalcmp("!", "a"), 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user