mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Updated approval tests
This commit is contained in:
parent
a3ceb8f007
commit
e641485132
@ -368,7 +368,9 @@ MessageTests.cpp:<line number>: FAILED:
|
|||||||
CHECK( a == 0 )
|
CHECK( a == 0 )
|
||||||
with expansion:
|
with expansion:
|
||||||
2 == 0
|
2 == 0
|
||||||
with message:
|
with messages:
|
||||||
|
this message may be logged later
|
||||||
|
this message should be logged
|
||||||
and this, but later
|
and this, but later
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
@ -119,7 +119,7 @@ with expansion:
|
|||||||
|
|
||||||
MiscTests.cpp:<line number>:
|
MiscTests.cpp:<line number>:
|
||||||
PASSED:
|
PASSED:
|
||||||
REQUIRE( (*__error()) == 1 )
|
REQUIRE( errno == 1 )
|
||||||
with expansion:
|
with expansion:
|
||||||
1 == 1
|
1 == 1
|
||||||
|
|
||||||
@ -2717,14 +2717,17 @@ MessageTests.cpp:<line number>: FAILED:
|
|||||||
CHECK( a == 1 )
|
CHECK( a == 1 )
|
||||||
with expansion:
|
with expansion:
|
||||||
2 == 1
|
2 == 1
|
||||||
with message:
|
with messages:
|
||||||
|
this message may be logged later
|
||||||
this message should be logged
|
this message should be logged
|
||||||
|
|
||||||
MessageTests.cpp:<line number>: FAILED:
|
MessageTests.cpp:<line number>: FAILED:
|
||||||
CHECK( a == 0 )
|
CHECK( a == 0 )
|
||||||
with expansion:
|
with expansion:
|
||||||
2 == 0
|
2 == 0
|
||||||
with message:
|
with messages:
|
||||||
|
this message may be logged later
|
||||||
|
this message should be logged
|
||||||
and this, but later
|
and this, but later
|
||||||
|
|
||||||
MessageTests.cpp:<line number>:
|
MessageTests.cpp:<line number>:
|
||||||
@ -2732,7 +2735,10 @@ PASSED:
|
|||||||
CHECK( a == 2 )
|
CHECK( a == 2 )
|
||||||
with expansion:
|
with expansion:
|
||||||
2 == 2
|
2 == 2
|
||||||
with message:
|
with messages:
|
||||||
|
this message may be logged later
|
||||||
|
this message should be logged
|
||||||
|
and this, but later
|
||||||
but not this
|
but not this
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
@ -119,7 +119,7 @@ with expansion:
|
|||||||
|
|
||||||
MiscTests.cpp:<line number>:
|
MiscTests.cpp:<line number>:
|
||||||
PASSED:
|
PASSED:
|
||||||
REQUIRE( (*__error()) == 1 )
|
REQUIRE( errno == 1 )
|
||||||
with expansion:
|
with expansion:
|
||||||
1 == 1
|
1 == 1
|
||||||
|
|
||||||
|
@ -237,10 +237,13 @@ MessageTests.cpp:<line number>
|
|||||||
</testcase>
|
</testcase>
|
||||||
<testcase classname="global" name="INFO gets logged on failure, even if captured before successful assertions" time="{duration}">
|
<testcase classname="global" name="INFO gets logged on failure, even if captured before successful assertions" time="{duration}">
|
||||||
<failure message="2 == 1" type="CHECK">
|
<failure message="2 == 1" type="CHECK">
|
||||||
|
this message may be logged later
|
||||||
this message should be logged
|
this message should be logged
|
||||||
MessageTests.cpp:<line number>
|
MessageTests.cpp:<line number>
|
||||||
</failure>
|
</failure>
|
||||||
<failure message="2 == 0" type="CHECK">
|
<failure message="2 == 0" type="CHECK">
|
||||||
|
this message may be logged later
|
||||||
|
this message should be logged
|
||||||
and this, but later
|
and this, but later
|
||||||
MessageTests.cpp:<line number>
|
MessageTests.cpp:<line number>
|
||||||
</failure>
|
</failure>
|
||||||
|
@ -128,7 +128,7 @@
|
|||||||
</Expression>
|
</Expression>
|
||||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" >
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/MiscTests.cpp" >
|
||||||
<Original>
|
<Original>
|
||||||
(*__error()) == 1
|
errno == 1
|
||||||
</Original>
|
</Original>
|
||||||
<Expanded>
|
<Expanded>
|
||||||
1 == 1
|
1 == 1
|
||||||
@ -2744,6 +2744,9 @@
|
|||||||
2 == 2
|
2 == 2
|
||||||
</Expanded>
|
</Expanded>
|
||||||
</Expression>
|
</Expression>
|
||||||
|
<Info>
|
||||||
|
this message may be logged later
|
||||||
|
</Info>
|
||||||
<Info>
|
<Info>
|
||||||
this message should be logged
|
this message should be logged
|
||||||
</Info>
|
</Info>
|
||||||
@ -2755,6 +2758,12 @@
|
|||||||
2 == 1
|
2 == 1
|
||||||
</Expanded>
|
</Expanded>
|
||||||
</Expression>
|
</Expression>
|
||||||
|
<Info>
|
||||||
|
this message may be logged later
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
this message should be logged
|
||||||
|
</Info>
|
||||||
<Info>
|
<Info>
|
||||||
and this, but later
|
and this, but later
|
||||||
</Info>
|
</Info>
|
||||||
@ -2766,6 +2775,15 @@
|
|||||||
2 == 0
|
2 == 0
|
||||||
</Expanded>
|
</Expanded>
|
||||||
</Expression>
|
</Expression>
|
||||||
|
<Info>
|
||||||
|
this message may be logged later
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
this message should be logged
|
||||||
|
</Info>
|
||||||
|
<Info>
|
||||||
|
and this, but later
|
||||||
|
</Info>
|
||||||
<Info>
|
<Info>
|
||||||
but not this
|
but not this
|
||||||
</Info>
|
</Info>
|
||||||
|
Loading…
Reference in New Issue
Block a user