Add test cases for updated logical sort (#13143)

This commit is contained in:
Duncan authored and GitHub committed 2020-10-10 13:37:56 +01:00
1 parent f418acfe19
commit 1207434afa
1 file changed
+6
+6
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);
}