mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Remove obsoleted SCOPED_MSG and SCOPED_CAPTURE
				
					
				
			Standard `MSG` and `CAPTURE` behave the same way these used to, and are recommended instead.
This commit is contained in:
		| @@ -422,6 +422,20 @@ with messages: | ||||
|   this message should be logged | ||||
|   and this, but later | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| INFO is reset for each loop | ||||
| ------------------------------------------------------------------------------- | ||||
| MessageTests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| MessageTests.cpp:<line number>: FAILED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   10 < 10 | ||||
| with messages: | ||||
|   current counter 10 | ||||
|   i := 10 | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| Inequality checks that should fail | ||||
| ------------------------------------------------------------------------------- | ||||
| @@ -655,20 +669,6 @@ DecompositionTests.cpp:<line number>: FAILED: | ||||
| with expansion: | ||||
|   Hey, its truthy! | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| SCOPED_INFO is reset for each loop | ||||
| ------------------------------------------------------------------------------- | ||||
| MessageTests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| MessageTests.cpp:<line number>: FAILED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   10 < 10 | ||||
| with messages: | ||||
|   current counter 10 | ||||
|   i := 10 | ||||
|  | ||||
| A string sent directly to stdout | ||||
| A string sent directly to stderr | ||||
| Write to std::cerr | ||||
|   | ||||
| @@ -1648,6 +1648,110 @@ with messages: | ||||
|   and this, but later | ||||
|   but not this | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| INFO is reset for each loop | ||||
| ------------------------------------------------------------------------------- | ||||
| MessageTests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   0 < 10 | ||||
| with messages: | ||||
|   current counter 0 | ||||
|   i := 0 | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   1 < 10 | ||||
| with messages: | ||||
|   current counter 1 | ||||
|   i := 1 | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   2 < 10 | ||||
| with messages: | ||||
|   current counter 2 | ||||
|   i := 2 | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   3 < 10 | ||||
| with messages: | ||||
|   current counter 3 | ||||
|   i := 3 | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   4 < 10 | ||||
| with messages: | ||||
|   current counter 4 | ||||
|   i := 4 | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   5 < 10 | ||||
| with messages: | ||||
|   current counter 5 | ||||
|   i := 5 | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   6 < 10 | ||||
| with messages: | ||||
|   current counter 6 | ||||
|   i := 6 | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   7 < 10 | ||||
| with messages: | ||||
|   current counter 7 | ||||
|   i := 7 | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   8 < 10 | ||||
| with messages: | ||||
|   current counter 8 | ||||
|   i := 8 | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   9 < 10 | ||||
| with messages: | ||||
|   current counter 9 | ||||
|   i := 9 | ||||
|  | ||||
| MessageTests.cpp:<line number>: FAILED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   10 < 10 | ||||
| with messages: | ||||
|   current counter 10 | ||||
|   i := 10 | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| Inequality checks that should fail | ||||
| ------------------------------------------------------------------------------- | ||||
| @@ -3839,110 +3943,6 @@ DecompositionTests.cpp:<line number>: FAILED: | ||||
| with expansion: | ||||
|   Hey, its truthy! | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| SCOPED_INFO is reset for each loop | ||||
| ------------------------------------------------------------------------------- | ||||
| MessageTests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   0 < 10 | ||||
| with messages: | ||||
|   current counter 0 | ||||
|   i := 0 | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   1 < 10 | ||||
| with messages: | ||||
|   current counter 1 | ||||
|   i := 1 | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   2 < 10 | ||||
| with messages: | ||||
|   current counter 2 | ||||
|   i := 2 | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   3 < 10 | ||||
| with messages: | ||||
|   current counter 3 | ||||
|   i := 3 | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   4 < 10 | ||||
| with messages: | ||||
|   current counter 4 | ||||
|   i := 4 | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   5 < 10 | ||||
| with messages: | ||||
|   current counter 5 | ||||
|   i := 5 | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   6 < 10 | ||||
| with messages: | ||||
|   current counter 6 | ||||
|   i := 6 | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   7 < 10 | ||||
| with messages: | ||||
|   current counter 7 | ||||
|   i := 7 | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   8 < 10 | ||||
| with messages: | ||||
|   current counter 8 | ||||
|   i := 8 | ||||
|  | ||||
| MessageTests.cpp:<line number>: | ||||
| PASSED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   9 < 10 | ||||
| with messages: | ||||
|   current counter 9 | ||||
|   i := 9 | ||||
|  | ||||
| MessageTests.cpp:<line number>: FAILED: | ||||
|   REQUIRE( i < 10 ) | ||||
| with expansion: | ||||
|   10 < 10 | ||||
| with messages: | ||||
|   current counter 10 | ||||
|   i := 10 | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| SUCCEED counts as a test pass | ||||
| ------------------------------------------------------------------------------- | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský