@@ -485,7 +485,131 @@ ConditionTests.cpp:<line number>: FAILED:
485485with expansion:
486486 9.1f != Approx( 9.1000003815 )
487487
488+ -------------------------------------------------------------------------------
489+ Ordering comparison checks that should succeed
490+ -------------------------------------------------------------------------------
491+ ConditionTests.cpp:<line number>
492+ ...............................................................................
493+
494+ ConditionTests.cpp:<line number>:
495+ PASSED:
496+ REQUIRE( data.int_seven < 8 )
497+ with expansion:
498+ 7 < 8
499+
500+ ConditionTests.cpp:<line number>:
501+ PASSED:
502+ REQUIRE( data.int_seven > 6 )
503+ with expansion:
504+ 7 > 6
505+
506+ ConditionTests.cpp:<line number>:
507+ PASSED:
508+ REQUIRE( data.int_seven > 0 )
509+ with expansion:
510+ 7 > 0
511+
512+ ConditionTests.cpp:<line number>:
513+ PASSED:
514+ REQUIRE( data.int_seven > -1 )
515+ with expansion:
516+ 7 > -1
517+
518+ ConditionTests.cpp:<line number>:
519+ PASSED:
520+ REQUIRE( data.int_seven >= 7 )
521+ with expansion:
522+ 7 >= 7
523+
524+ ConditionTests.cpp:<line number>:
525+ PASSED:
526+ REQUIRE( data.int_seven >= 6 )
527+ with expansion:
528+ 7 >= 6
529+
530+ ConditionTests.cpp:<line number>:
531+ PASSED:
532+ REQUIRE( data.int_seven <= 7 )
533+ with expansion:
534+ 7 <= 7
535+
536+ ConditionTests.cpp:<line number>:
537+ PASSED:
538+ REQUIRE( data.int_seven <= 8 )
539+ with expansion:
540+ 7 <= 8
541+
542+ ConditionTests.cpp:<line number>:
543+ PASSED:
544+ REQUIRE( data.float_nine_point_one > 9 )
545+ with expansion:
546+ 9.1f > 9
547+
548+ ConditionTests.cpp:<line number>:
549+ PASSED:
550+ REQUIRE( data.float_nine_point_one < 10 )
551+ with expansion:
552+ 9.1f < 10
553+
554+ ConditionTests.cpp:<line number>:
555+ PASSED:
556+ REQUIRE( data.float_nine_point_one < 9.2 )
557+ with expansion:
558+ 9.1f < 9.2
559+
560+ ConditionTests.cpp:<line number>:
561+ PASSED:
562+ REQUIRE( data.str_hello <= "hello" )
563+ with expansion:
564+ "hello" <= "hello"
565+
566+ ConditionTests.cpp:<line number>:
567+ PASSED:
568+ REQUIRE( data.str_hello >= "hello" )
569+ with expansion:
570+ "hello" >= "hello"
571+
572+ ConditionTests.cpp:<line number>:
573+ PASSED:
574+ REQUIRE( data.str_hello < "hellp" )
575+ with expansion:
576+ "hello" < "hellp"
577+
578+ ConditionTests.cpp:<line number>:
579+ PASSED:
580+ REQUIRE( data.str_hello < "zebra" )
581+ with expansion:
582+ "hello" < "zebra"
583+
584+ ConditionTests.cpp:<line number>:
585+ PASSED:
586+ REQUIRE( data.str_hello > "hellm" )
587+ with expansion:
588+ "hello" > "hellm"
589+
590+ ConditionTests.cpp:<line number>:
591+ PASSED:
592+ REQUIRE( data.str_hello > "a" )
593+ with expansion:
594+ "hello" > "a"
595+
596+ -------------------------------------------------------------------------------
597+ Ordering comparison checks that should fail
598+ -------------------------------------------------------------------------------
599+ ConditionTests.cpp:<line number>
600+ ...............................................................................
601+
602+ ConditionTests.cpp:<line number>: FAILED:
603+ CHECK( data.int_seven > 7 )
604+ with expansion:
605+ 7 > 7
606+
607+ ConditionTests.cpp:<line number>: FAILED:
608+ CHECK( data.int_seven < 7 )
609+ with expansion:
610+ 7 < 7
611+
488612===============================================================================
489- test cases: 19 | 15 passed | 3 failed | 1 failed as expected
490- assertions: 62 | 56 passed | 4 failed | 2 failed as expected
613+ test cases: 21 | 16 passed | 3 failed | 2 failed as expected
614+ assertions: 81 | 73 passed | 4 failed | 4 failed as expected
491615
0 commit comments