1
0
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:
Duncan
2020-10-10 13:37:56 +01:00
committed by GitHub
parent f418acfe19
commit 1207434afa

View File

@@ -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);
}