mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 12:55:40 +02:00
changed hex threshold on ints to 255
- and print it in *addition* to the decimal form
This commit is contained in:
@@ -846,7 +846,9 @@ ConditionTests.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE( (std::numeric_limits<unsigned long>::max)() > ul )
|
||||
with expansion:
|
||||
0x<hex digits> > 4
|
||||
18446744073709551615 (0x<hex digits>)
|
||||
>
|
||||
4
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
comparisons between int variables
|
||||
@@ -3398,7 +3400,7 @@ MiscTests.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE( Factorial(10) == 3628800 )
|
||||
with expansion:
|
||||
0x<hex digits> == 0x<hex digits>
|
||||
3628800 (0x<hex digits>) == 3628800 (0x<hex digits>)
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
An empty test with no assertions
|
||||
@@ -5827,7 +5829,7 @@ TrickyTests.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE( 0x<hex digits> == o )
|
||||
with expansion:
|
||||
0x<hex digits> == {?}
|
||||
3221225472 (0x<hex digits>) == {?}
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Demonstrate that a non-const == is not used
|
||||
@@ -5851,7 +5853,7 @@ TrickyTests.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE( 0x<hex digits> == bit30and31 )
|
||||
with expansion:
|
||||
0x<hex digits> == 3221225472
|
||||
3221225472 (0x<hex digits>) == 3221225472
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
boolean member
|
||||
@@ -6308,9 +6310,9 @@ with expansion:
|
||||
|
||||
ToStringVector.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE( Catch::toString(vv) == "{ 42, 512 }" )
|
||||
REQUIRE( Catch::toString(vv) == "{ 42, 250 }" )
|
||||
with expansion:
|
||||
"{ 42, 512 }" == "{ 42, 512 }"
|
||||
"{ 42, 250 }" == "{ 42, 250 }"
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
vector<string> -> toString
|
||||
@@ -6358,9 +6360,9 @@ with expansion:
|
||||
|
||||
ToStringVector.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE( Catch::toString(vv) == "{ 42, 512 }" )
|
||||
REQUIRE( Catch::toString(vv) == "{ 42, 250 }" )
|
||||
with expansion:
|
||||
"{ 42, 512 }" == "{ 42, 512 }"
|
||||
"{ 42, 250 }" == "{ 42, 250 }"
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
vec<vec<string,alloc>> -> toString
|
||||
|
@@ -1063,7 +1063,9 @@
|
||||
(std::numeric_limits<unsigned long>::max)() > ul
|
||||
</Original>
|
||||
<Expanded>
|
||||
0x<hex digits> > 4
|
||||
18446744073709551615 (0x<hex digits>)
|
||||
>
|
||||
4
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<OverallResult success="true"/>
|
||||
@@ -3519,7 +3521,7 @@
|
||||
Factorial(10) == 3628800
|
||||
</Original>
|
||||
<Expanded>
|
||||
0x<hex digits> == 0x<hex digits>
|
||||
3628800 (0x<hex digits>) == 3628800 (0x<hex digits>)
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<OverallResult success="true"/>
|
||||
@@ -6009,7 +6011,7 @@ there"
|
||||
0x<hex digits> == o
|
||||
</Original>
|
||||
<Expanded>
|
||||
0x<hex digits> == {?}
|
||||
3221225472 (0x<hex digits>) == {?}
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<OverallResult success="true"/>
|
||||
@@ -6031,7 +6033,7 @@ there"
|
||||
0x<hex digits> == bit30and31
|
||||
</Original>
|
||||
<Expanded>
|
||||
0x<hex digits> == 3221225472
|
||||
3221225472 (0x<hex digits>) == 3221225472
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<OverallResult success="true"/>
|
||||
@@ -6439,10 +6441,10 @@ there"
|
||||
</Expression>
|
||||
<Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
|
||||
<Original>
|
||||
Catch::toString(vv) == "{ 42, 512 }"
|
||||
Catch::toString(vv) == "{ 42, 250 }"
|
||||
</Original>
|
||||
<Expanded>
|
||||
"{ 42, 512 }" == "{ 42, 512 }"
|
||||
"{ 42, 250 }" == "{ 42, 250 }"
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<OverallResult success="true"/>
|
||||
@@ -6495,10 +6497,10 @@ there"
|
||||
</Expression>
|
||||
<Expression success="true" type="REQUIRE" filename="projects/SelfTest/ToStringVector.cpp" >
|
||||
<Original>
|
||||
Catch::toString(vv) == "{ 42, 512 }"
|
||||
Catch::toString(vv) == "{ 42, 250 }"
|
||||
</Original>
|
||||
<Expanded>
|
||||
"{ 42, 512 }" == "{ 42, 512 }"
|
||||
"{ 42, 250 }" == "{ 42, 250 }"
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<OverallResult success="true"/>
|
||||
|
Reference in New Issue
Block a user