Skip to content

Commit 3da6ae7

Browse files
committed
missing reference tests for operator lt gt etc
1 parent d1adaef commit 3da6ae7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/host/core/test_string.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,12 @@ TEST_CASE("String concantenation", "[core][String]")
198198

199199
TEST_CASE("String comparison", "[core][String]")
200200
{
201-
String alpha("I like fish!");
202-
REQUIRE(alpha < "I like tacos!"); // compareTo()
201+
REQUIRE(String("a") < String("b")); // compareTo() reference comparisons
202+
REQUIRE(String("1") < String("2"));
203+
REQUIRE(String("999") > String("1000"));
204+
String alpha("I like fish!"); // compareTo()
205+
REQUIRE(alpha < "I like tacos!");
206+
REQUIRE(alpha > "I like bacon!");
203207
REQUIRE(alpha > "I like cod!");
204208
REQUIRE(alpha >= "I like beef!");
205209
REQUIRE(alpha <= "I like soup!");

0 commit comments

Comments
 (0)