File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -187,11 +187,14 @@ TEST_CASE("String concantenation", "[core][String]")
187187TEST_CASE (" String comparison" , " [core][String]" )
188188{
189189 String alpha (" I like fish!" );
190- REQUIRE (alpha < " I like tacos!" );
191- REQUIRE (alpha > " I like bacon!" );
190+ REQUIRE (alpha < " I like tacos!" ); // compareTo()
191+ REQUIRE (alpha > " I like cod!" );
192+ REQUIRE (alpha >= " I like beef!" );
193+ REQUIRE (alpha <= " I like soup!" );
192194 REQUIRE (alpha.equalsIgnoreCase (" i LiKe FiSh!" ));
195+ REQUIRE (!alpha.equalsIgnoreCase (" i LiKe FiSh! And ChIPs!" ));
193196 REQUIRE (alpha.equalsConstantTime (" I like fish!" ));
194- REQUIRE (alpha != " I like fish?" );
197+ REQUIRE (alpha != " I like fish?" ); // equals()
195198 REQUIRE (alpha.startsWith (" I like" ));
196199 REQUIRE (!alpha.startsWith (" I lick" ));
197200 REQUIRE (alpha.startsWith (" fish" , 7 ));
You can’t perform that action at this time.
0 commit comments