mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-03 22:05:39 +02:00
Add tests for ColourGuard
This commit is contained in:
@@ -3023,6 +3023,66 @@ Clara.tests.cpp:<line number>: PASSED:
|
||||
with expansion:
|
||||
{ "aaa", "bbb" } == { "aaa", "bbb" }
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
ColourGuard behaviour
|
||||
ColourGuard is disengaged by default
|
||||
-------------------------------------------------------------------------------
|
||||
ColourImpl.tests.cpp:<line number>
|
||||
...............................................................................
|
||||
|
||||
ColourImpl.tests.cpp:<line number>: PASSED:
|
||||
REQUIRE( streamWrapper.str().empty() )
|
||||
with expansion:
|
||||
true
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
ColourGuard behaviour
|
||||
ColourGuard is engaged by op<<
|
||||
-------------------------------------------------------------------------------
|
||||
ColourImpl.tests.cpp:<line number>
|
||||
...............................................................................
|
||||
|
||||
ColourImpl.tests.cpp:<line number>: PASSED:
|
||||
REQUIRE( streamWrapper.str() == "1\nUsing code: 2\n2\nUsing code: 0\n3\n" )
|
||||
with expansion:
|
||||
"1
|
||||
Using code: 2
|
||||
2
|
||||
Using code: 0
|
||||
3
|
||||
"
|
||||
==
|
||||
"1
|
||||
Using code: 2
|
||||
2
|
||||
Using code: 0
|
||||
3
|
||||
"
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
ColourGuard behaviour
|
||||
ColourGuard can be engaged explicitly
|
||||
-------------------------------------------------------------------------------
|
||||
ColourImpl.tests.cpp:<line number>
|
||||
...............................................................................
|
||||
|
||||
ColourImpl.tests.cpp:<line number>: PASSED:
|
||||
REQUIRE( streamWrapper.str() == "Using code: 2\nA\nB\nUsing code: 0\nC\n" )
|
||||
with expansion:
|
||||
"Using code: 2
|
||||
A
|
||||
B
|
||||
Using code: 0
|
||||
C
|
||||
"
|
||||
==
|
||||
"Using code: 2
|
||||
A
|
||||
B
|
||||
Using code: 0
|
||||
C
|
||||
"
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Combining MatchAllOfGeneric does not nest
|
||||
-------------------------------------------------------------------------------
|
||||
@@ -17811,6 +17871,6 @@ Misc.tests.cpp:<line number>
|
||||
Misc.tests.cpp:<line number>: PASSED:
|
||||
|
||||
===============================================================================
|
||||
test cases: 385 | 295 passed | 83 failed | 7 failed as expected
|
||||
assertions: 2231 | 2061 passed | 143 failed | 27 failed as expected
|
||||
test cases: 386 | 296 passed | 83 failed | 7 failed as expected
|
||||
assertions: 2234 | 2064 passed | 143 failed | 27 failed as expected
|
||||
|
||||
|
Reference in New Issue
Block a user