From 1207434afaabee11535692b1c4ccd0231225d7b2 Mon Sep 17 00:00:00 2001 From: Duncan Date: Sat, 10 Oct 2020 13:37:56 +0100 Subject: [PATCH] Add test cases for updated logical sort (#13143) --- test/tests/StringTest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/tests/StringTest.cpp b/test/tests/StringTest.cpp index 3f381ba70c..6de13d7f24 100644 --- a/test/tests/StringTest.cpp +++ b/test/tests/StringTest.cpp @@ -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); }