mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	| @@ -58,6 +58,8 @@ with expansion: | ||||
|  | ||||
| ConditionTests.cpp:<line number>: FAILED: | ||||
|   CHECK_FALSE( true ) | ||||
| with expansion: | ||||
|   !true | ||||
|  | ||||
| ConditionTests.cpp:<line number>: FAILED: | ||||
|   CHECK( !trueValue ) | ||||
| @@ -76,8 +78,6 @@ with expansion: | ||||
|  | ||||
| ConditionTests.cpp:<line number>: FAILED: | ||||
|   CHECK_FALSE( 1 == 1 ) | ||||
| with expansion: | ||||
|   !(1 == 1) | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| A METHOD_AS_TEST_CASE based test run that fails | ||||
|   | ||||
| @@ -202,6 +202,8 @@ with expansion: | ||||
|  | ||||
| ConditionTests.cpp:<line number>: FAILED: | ||||
|   CHECK_FALSE( true ) | ||||
| with expansion: | ||||
|   !true | ||||
|  | ||||
| ConditionTests.cpp:<line number>: FAILED: | ||||
|   CHECK( !trueValue ) | ||||
| @@ -220,8 +222,6 @@ with expansion: | ||||
|  | ||||
| ConditionTests.cpp:<line number>: FAILED: | ||||
|   CHECK_FALSE( 1 == 1 ) | ||||
| with expansion: | ||||
|   !(1 == 1) | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| 'Not' checks that should succeed | ||||
| @@ -246,6 +246,8 @@ with expansion: | ||||
| ConditionTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE_FALSE( false ) | ||||
| with expansion: | ||||
|   !false | ||||
|  | ||||
| ConditionTests.cpp:<line number>: | ||||
| PASSED: | ||||
| @@ -268,8 +270,6 @@ with expansion: | ||||
| ConditionTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE_FALSE( 1 == 2 ) | ||||
| with expansion: | ||||
|   !(1 == 2) | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| (unimplemented) static bools can be evaluated | ||||
|   | ||||
| @@ -202,6 +202,8 @@ with expansion: | ||||
|  | ||||
| ConditionTests.cpp:<line number>: FAILED: | ||||
|   CHECK_FALSE( true ) | ||||
| with expansion: | ||||
|   !true | ||||
|  | ||||
| =============================================================================== | ||||
| test cases:  7 |  4 passed | 1 failed | 2 failed as expected | ||||
|   | ||||
| @@ -181,7 +181,7 @@ | ||||
|       </Expression> | ||||
|       <Expression success="false" type="CHECK_FALSE" filename="projects/<exe-name>/ConditionTests.cpp" > | ||||
|         <Original> | ||||
|           !true | ||||
|           !(true) | ||||
|         </Original> | ||||
|         <Expanded> | ||||
|           !true | ||||
| @@ -197,7 +197,7 @@ | ||||
|       </Expression> | ||||
|       <Expression success="false" type="CHECK_FALSE" filename="projects/<exe-name>/ConditionTests.cpp" > | ||||
|         <Original> | ||||
|           !trueValue | ||||
|           !(trueValue) | ||||
|         </Original> | ||||
|         <Expanded> | ||||
|           !true | ||||
| @@ -213,7 +213,7 @@ | ||||
|       </Expression> | ||||
|       <Expression success="false" type="CHECK_FALSE" filename="projects/<exe-name>/ConditionTests.cpp" > | ||||
|         <Original> | ||||
|           !1 == 1 | ||||
|           !(1 == 1) | ||||
|         </Original> | ||||
|         <Expanded> | ||||
|           !(1 == 1) | ||||
| @@ -248,7 +248,7 @@ | ||||
|       </Expression> | ||||
|       <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/ConditionTests.cpp" > | ||||
|         <Original> | ||||
|           !false | ||||
|           !(false) | ||||
|         </Original> | ||||
|         <Expanded> | ||||
|           !false | ||||
| @@ -264,7 +264,7 @@ | ||||
|       </Expression> | ||||
|       <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/ConditionTests.cpp" > | ||||
|         <Original> | ||||
|           !falseValue | ||||
|           !(falseValue) | ||||
|         </Original> | ||||
|         <Expanded> | ||||
|           !false | ||||
| @@ -280,7 +280,7 @@ | ||||
|       </Expression> | ||||
|       <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/ConditionTests.cpp" > | ||||
|         <Original> | ||||
|           !1 == 2 | ||||
|           !(1 == 2) | ||||
|         </Original> | ||||
|         <Expanded> | ||||
|           !(1 == 2) | ||||
| @@ -360,7 +360,7 @@ | ||||
|         </Expression> | ||||
|         <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/TrickyTests.cpp" > | ||||
|           <Original> | ||||
|             !is_true<false>::value | ||||
|             !(is_true<false>::value) | ||||
|           </Original> | ||||
|           <Expanded> | ||||
|             !false | ||||
| @@ -2708,7 +2708,7 @@ | ||||
|       </Expression> | ||||
|       <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/ApproxTests.cpp" > | ||||
|         <Original> | ||||
|           !d >= Approx( 1.24 ) | ||||
|           !(d >= Approx( 1.24 )) | ||||
|         </Original> | ||||
|         <Expanded> | ||||
|           !(1.23 >= Approx( 1.24 )) | ||||
| @@ -2968,7 +2968,7 @@ | ||||
|       </Expression> | ||||
|       <Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/ApproxTests.cpp" > | ||||
|         <Original> | ||||
|           !d <= Approx( 1.22 ) | ||||
|           !(d <= Approx( 1.22 )) | ||||
|         </Original> | ||||
|         <Expanded> | ||||
|           !(1.23 <= Approx( 1.22 )) | ||||
| @@ -4726,7 +4726,7 @@ re>" | ||||
|       </Expression> | ||||
|       <Expression success="true" type="CHECK_FALSE" filename="projects/<exe-name>/TrickyTests.cpp" > | ||||
|         <Original> | ||||
|           !False | ||||
|           !(False) | ||||
|         </Original> | ||||
|         <Expanded> | ||||
|           !0 | ||||
| @@ -9709,7 +9709,7 @@ spanner      <OverallResult success="true"/> | ||||
|       <Section name="replace no chars" filename="projects/<exe-name>/TestMain.cpp" > | ||||
|         <Expression success="true" type="CHECK_FALSE" filename="projects/<exe-name>/TestMain.cpp" > | ||||
|           <Original> | ||||
|             !replaceInPlace( letters, "x", "z" ) | ||||
|             !(replaceInPlace( letters, "x", "z" )) | ||||
|           </Original> | ||||
|           <Expanded> | ||||
|             !false | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash