Trim paths in approval tests down to filenames

This commit is contained in:
Phil Nash 2013-09-30 07:39:06 +01:00
parent 2f7a296897
commit 1e74938538
5 changed files with 1325 additions and 1323 deletions

View File

@ -6,10 +6,10 @@ Run with -? for options
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/TestClass/failingCase ./failing/TestClass/failingCase
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ClassTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ClassTests.cpp
............................................................................... ...............................................................................
ClassTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ClassTests.cpp: FAILED:
REQUIRE( s == "world" ) REQUIRE( s == "world" )
with expansion: with expansion:
"hello" == "world" "hello" == "world"
@ -17,10 +17,10 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/Fixture/failingCase ./failing/Fixture/failingCase
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ClassTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ClassTests.cpp
............................................................................... ...............................................................................
ClassTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ClassTests.cpp: FAILED:
REQUIRE( m_a == 2 ) REQUIRE( m_a == 2 )
with expansion: with expansion:
1 == 2 1 == 2
@ -28,70 +28,70 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/conditions/equality ./failing/conditions/equality
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
............................................................................... ...............................................................................
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.int_seven == 6 ) CHECK( data.int_seven == 6 )
with expansion: with expansion:
7 == 6 7 == 6
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.int_seven == 8 ) CHECK( data.int_seven == 8 )
with expansion: with expansion:
7 == 8 7 == 8
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.int_seven == 0 ) CHECK( data.int_seven == 0 )
with expansion: with expansion:
7 == 0 7 == 0
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.float_nine_point_one == Approx( 9.11f ) ) CHECK( data.float_nine_point_one == Approx( 9.11f ) )
with expansion: with expansion:
9.1 == Approx( 9.11 ) 9.1 == Approx( 9.11 )
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.float_nine_point_one == Approx( 9.0f ) ) CHECK( data.float_nine_point_one == Approx( 9.0f ) )
with expansion: with expansion:
9.1 == Approx( 9 ) 9.1 == Approx( 9 )
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.float_nine_point_one == Approx( 1 ) ) CHECK( data.float_nine_point_one == Approx( 1 ) )
with expansion: with expansion:
9.1 == Approx( 1 ) 9.1 == Approx( 1 )
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.float_nine_point_one == Approx( 0 ) ) CHECK( data.float_nine_point_one == Approx( 0 ) )
with expansion: with expansion:
9.1 == Approx( 0 ) 9.1 == Approx( 0 )
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.double_pi == Approx( 3.1415 ) ) CHECK( data.double_pi == Approx( 3.1415 ) )
with expansion: with expansion:
3.1415926535 == Approx( 3.1415 ) 3.1415926535 == Approx( 3.1415 )
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.str_hello == "goodbye" ) CHECK( data.str_hello == "goodbye" )
with expansion: with expansion:
"hello" == "goodbye" "hello" == "goodbye"
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.str_hello == "hell" ) CHECK( data.str_hello == "hell" )
with expansion: with expansion:
"hello" == "hell" "hello" == "hell"
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.str_hello == "hello1" ) CHECK( data.str_hello == "hello1" )
with expansion: with expansion:
"hello" == "hello1" "hello" == "hello1"
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.str_hello.size() == 6 ) CHECK( data.str_hello.size() == 6 )
with expansion: with expansion:
5 == 6 5 == 6
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( x == Approx( 1.301 ) ) CHECK( x == Approx( 1.301 ) )
with expansion: with expansion:
1.3 == Approx( 1.301 ) 1.3 == Approx( 1.301 )
@ -99,30 +99,30 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/conditions/inequality ./failing/conditions/inequality
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
............................................................................... ...............................................................................
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.int_seven != 7 ) CHECK( data.int_seven != 7 )
with expansion: with expansion:
7 != 7 7 != 7
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.float_nine_point_one != Approx( 9.1f ) ) CHECK( data.float_nine_point_one != Approx( 9.1f ) )
with expansion: with expansion:
9.1 != Approx( 9.1 ) 9.1 != Approx( 9.1 )
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.double_pi != Approx( 3.1415926535 ) ) CHECK( data.double_pi != Approx( 3.1415926535 ) )
with expansion: with expansion:
3.1415926535 != Approx( 3.14159 ) 3.1415926535 != Approx( 3.14159 )
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.str_hello != "hello" ) CHECK( data.str_hello != "hello" )
with expansion: with expansion:
"hello" != "hello" "hello" != "hello"
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.str_hello.size() != 5 ) CHECK( data.str_hello.size() != 5 )
with expansion: with expansion:
5 != 5 5 != 5
@ -130,100 +130,100 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/conditions/ordered ./failing/conditions/ordered
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
............................................................................... ...............................................................................
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.int_seven > 7 ) CHECK( data.int_seven > 7 )
with expansion: with expansion:
7 > 7 7 > 7
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.int_seven < 7 ) CHECK( data.int_seven < 7 )
with expansion: with expansion:
7 < 7 7 < 7
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.int_seven > 8 ) CHECK( data.int_seven > 8 )
with expansion: with expansion:
7 > 8 7 > 8
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.int_seven < 6 ) CHECK( data.int_seven < 6 )
with expansion: with expansion:
7 < 6 7 < 6
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.int_seven < 0 ) CHECK( data.int_seven < 0 )
with expansion: with expansion:
7 < 0 7 < 0
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.int_seven < -1 ) CHECK( data.int_seven < -1 )
with expansion: with expansion:
7 < -1 7 < -1
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.int_seven >= 8 ) CHECK( data.int_seven >= 8 )
with expansion: with expansion:
7 >= 8 7 >= 8
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.int_seven <= 6 ) CHECK( data.int_seven <= 6 )
with expansion: with expansion:
7 <= 6 7 <= 6
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.float_nine_point_one < 9 ) CHECK( data.float_nine_point_one < 9 )
with expansion: with expansion:
9.1 < 9 9.1 < 9
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.float_nine_point_one > 10 ) CHECK( data.float_nine_point_one > 10 )
with expansion: with expansion:
9.1 > 10 9.1 > 10
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.float_nine_point_one > 9.2 ) CHECK( data.float_nine_point_one > 9.2 )
with expansion: with expansion:
9.1 > 9.2 9.1 > 9.2
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.str_hello > "hello" ) CHECK( data.str_hello > "hello" )
with expansion: with expansion:
"hello" > "hello" "hello" > "hello"
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.str_hello < "hello" ) CHECK( data.str_hello < "hello" )
with expansion: with expansion:
"hello" < "hello" "hello" < "hello"
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.str_hello > "hellp" ) CHECK( data.str_hello > "hellp" )
with expansion: with expansion:
"hello" > "hellp" "hello" > "hellp"
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.str_hello > "z" ) CHECK( data.str_hello > "z" )
with expansion: with expansion:
"hello" > "z" "hello" > "z"
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.str_hello < "hellm" ) CHECK( data.str_hello < "hellm" )
with expansion: with expansion:
"hello" < "hellm" "hello" < "hellm"
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.str_hello < "a" ) CHECK( data.str_hello < "a" )
with expansion: with expansion:
"hello" < "a" "hello" < "a"
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.str_hello >= "z" ) CHECK( data.str_hello >= "z" )
with expansion: with expansion:
"hello" >= "z" "hello" >= "z"
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.str_hello <= "a" ) CHECK( data.str_hello <= "a" )
with expansion: with expansion:
"hello" <= "a" "hello" <= "a"
@ -231,39 +231,39 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/conditions/not ./failing/conditions/not
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
............................................................................... ...............................................................................
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( false != false ) CHECK( false != false )
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( true != true ) CHECK( true != true )
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( !true ) CHECK( !true )
with expansion: with expansion:
false false
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK_FALSE( true ) CHECK_FALSE( true )
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( !trueValue ) CHECK( !trueValue )
with expansion: with expansion:
false false
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK_FALSE( trueValue ) CHECK_FALSE( trueValue )
with expansion: with expansion:
!true !true
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( !(1 == 1) ) CHECK( !(1 == 1) )
with expansion: with expansion:
false false
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK_FALSE( 1 == 1 ) CHECK_FALSE( 1 == 1 )
with expansion: with expansion:
!(1 == 1) !(1 == 1)
@ -271,19 +271,19 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/exceptions/explicit ./failing/exceptions/explicit
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
............................................................................... ...............................................................................
ExceptionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp: FAILED:
CHECK_THROWS_AS( thisThrows() ) CHECK_THROWS_AS( thisThrows() )
due to unexpected exception with message: due to unexpected exception with message:
expected exception expected exception
ExceptionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp: FAILED:
CHECK_THROWS_AS( thisDoesntThrow() ) CHECK_THROWS_AS( thisDoesntThrow() )
because no exception was thrown where one was expected: because no exception was thrown where one was expected:
ExceptionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp: FAILED:
CHECK_NOTHROW( thisThrows() ) CHECK_NOTHROW( thisThrows() )
due to unexpected exception with message: due to unexpected exception with message:
expected exception expected exception
@ -291,20 +291,20 @@ due to unexpected exception with message:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/exceptions/implicit ./failing/exceptions/implicit
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
............................................................................... ...............................................................................
ExceptionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp: FAILED:
due to unexpected exception with message: due to unexpected exception with message:
unexpected exception unexpected exception
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/exceptions/implicit/2 ./failing/exceptions/implicit/2
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
............................................................................... ...............................................................................
ExceptionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp: FAILED:
{Unknown expression after the reported line} {Unknown expression after the reported line}
due to unexpected exception with message: due to unexpected exception with message:
unexpected exception unexpected exception
@ -313,20 +313,20 @@ due to unexpected exception with message:
./failing/exceptions/implicit/3 ./failing/exceptions/implicit/3
section name section name
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
............................................................................... ...............................................................................
ExceptionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp: FAILED:
due to unexpected exception with message: due to unexpected exception with message:
unexpected exception unexpected exception
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/exceptions/implicit/4 ./failing/exceptions/implicit/4
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
............................................................................... ...............................................................................
ExceptionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp: FAILED:
CHECK( thisThrows() == 0 ) CHECK( thisThrows() == 0 )
due to unexpected exception with message: due to unexpected exception with message:
expected exception expected exception
@ -334,20 +334,20 @@ due to unexpected exception with message:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/exceptions/custom ./failing/exceptions/custom
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
............................................................................... ...............................................................................
ExceptionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp: FAILED:
due to unexpected exception with message: due to unexpected exception with message:
custom exception custom exception
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/exceptions/custom/nothrow ./failing/exceptions/custom/nothrow
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
............................................................................... ...............................................................................
ExceptionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp: FAILED:
REQUIRE_NOTHROW( throwCustom() ) REQUIRE_NOTHROW( throwCustom() )
due to unexpected exception with message: due to unexpected exception with message:
custom exception - not std custom exception - not std
@ -355,10 +355,10 @@ due to unexpected exception with message:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/exceptions/custom/throw ./failing/exceptions/custom/throw
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
............................................................................... ...............................................................................
ExceptionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp: FAILED:
REQUIRE_THROWS_AS( throwCustom() ) REQUIRE_THROWS_AS( throwCustom() )
due to unexpected exception with message: due to unexpected exception with message:
custom exception - not std custom exception - not std
@ -366,20 +366,20 @@ due to unexpected exception with message:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/exceptions/custom/double ./failing/exceptions/custom/double
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
............................................................................... ...............................................................................
ExceptionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp: FAILED:
due to unexpected exception with message: due to unexpected exception with message:
3.14 3.14
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/message/info/1 ./failing/message/info/1
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MessageTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp
............................................................................... ...............................................................................
MessageTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp: FAILED:
REQUIRE( a == 1 ) REQUIRE( a == 1 )
with expansion: with expansion:
2 == 1 2 == 1
@ -390,10 +390,10 @@ with messages:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./mixed/message/info/2 ./mixed/message/info/2
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MessageTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp
............................................................................... ...............................................................................
MessageTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp: FAILED:
CHECK( a == 1 ) CHECK( a == 1 )
with expansion: with expansion:
2 == 1 2 == 1
@ -401,7 +401,7 @@ with messages:
this message may be logged later this message may be logged later
this message should be logged this message should be logged
MessageTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp: FAILED:
CHECK( a == 0 ) CHECK( a == 0 )
with expansion: with expansion:
2 == 0 2 == 0
@ -411,10 +411,10 @@ with message:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/message/fail ./failing/message/fail
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MessageTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp
............................................................................... ...............................................................................
MessageTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp: FAILED:
explicitly with message: explicitly with message:
This is a failure This is a failure
@ -422,10 +422,10 @@ explicitly with message:
./failing/message/sections ./failing/message/sections
one one
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MessageTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp
............................................................................... ...............................................................................
MessageTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp: FAILED:
explicitly with message: explicitly with message:
Message from section one Message from section one
@ -433,10 +433,10 @@ explicitly with message:
./failing/message/sections ./failing/message/sections
two two
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MessageTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp
............................................................................... ...............................................................................
MessageTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp: FAILED:
explicitly with message: explicitly with message:
Message from section two Message from section two
@ -445,10 +445,10 @@ Message from section two
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./mixed/message/scoped ./mixed/message/scoped
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MessageTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp
............................................................................... ...............................................................................
MessageTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp: FAILED:
REQUIRE( i < 10 ) REQUIRE( i < 10 )
with expansion: with expansion:
10 < 10 10 < 10
@ -459,10 +459,10 @@ with messages:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
just failure just failure
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MessageTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp
............................................................................... ...............................................................................
MessageTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp: FAILED:
explicitly with message: explicitly with message:
Previous info should not be seen Previous info should not be seen
@ -471,10 +471,10 @@ explicitly with message:
s1 s1
s2 s2
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
............................................................................... ...............................................................................
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
REQUIRE( a == b ) REQUIRE( a == b )
with expansion: with expansion:
1 == 2 1 == 2
@ -483,10 +483,10 @@ with expansion:
./mixed/Misc/Sections/loops ./mixed/Misc/Sections/loops
s1 s1
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
............................................................................... ...............................................................................
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
CHECK( b > a ) CHECK( b > a )
with expansion: with expansion:
0 > 1 0 > 1
@ -494,45 +494,45 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./mixed/Misc/loops ./mixed/Misc/loops
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
............................................................................... ...............................................................................
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
CHECK( ( fib[i] % 2 ) == 0 ) CHECK( ( fib[i] % 2 ) == 0 )
with expansion: with expansion:
1 == 0 1 == 0
with message: with message:
Testing if fib[0] (1) is even Testing if fib[0] (1) is even
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
CHECK( ( fib[i] % 2 ) == 0 ) CHECK( ( fib[i] % 2 ) == 0 )
with expansion: with expansion:
1 == 0 1 == 0
with message: with message:
Testing if fib[1] (1) is even Testing if fib[1] (1) is even
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
CHECK( ( fib[i] % 2 ) == 0 ) CHECK( ( fib[i] % 2 ) == 0 )
with expansion: with expansion:
1 == 0 1 == 0
with message: with message:
Testing if fib[3] (3) is even Testing if fib[3] (3) is even
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
CHECK( ( fib[i] % 2 ) == 0 ) CHECK( ( fib[i] % 2 ) == 0 )
with expansion: with expansion:
1 == 0 1 == 0
with message: with message:
Testing if fib[4] (5) is even Testing if fib[4] (5) is even
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
CHECK( ( fib[i] % 2 ) == 0 ) CHECK( ( fib[i] % 2 ) == 0 )
with expansion: with expansion:
1 == 0 1 == 0
with message: with message:
Testing if fib[6] (13) is even Testing if fib[6] (13) is even
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
CHECK( ( fib[i] % 2 ) == 0 ) CHECK( ( fib[i] % 2 ) == 0 )
with expansion: with expansion:
1 == 0 1 == 0
@ -544,10 +544,10 @@ An error
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/info ./failing/info
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
............................................................................... ...............................................................................
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
REQUIRE( false ) REQUIRE( false )
with messages: with messages:
hi hi
@ -556,15 +556,15 @@ with messages:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/checkedif ./failing/checkedif
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
............................................................................... ...............................................................................
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
CHECKED_IF( flag ) CHECKED_IF( flag )
with expansion: with expansion:
false false
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
REQUIRE( testCheckedIf( false ) ) REQUIRE( testCheckedIf( false ) )
with expansion: with expansion:
false false
@ -572,15 +572,15 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/checkedelse ./failing/checkedelse
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
............................................................................... ...............................................................................
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
CHECKED_ELSE( flag ) CHECKED_ELSE( flag )
with expansion: with expansion:
false false
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
REQUIRE( testCheckedElse( false ) ) REQUIRE( testCheckedElse( false ) )
with expansion: with expansion:
false false
@ -588,10 +588,10 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./manual/onechar ./manual/onechar
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
............................................................................... ...............................................................................
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
REQUIRE( false ) REQUIRE( false )
with message: with message:
3 3
@ -599,10 +599,10 @@ with message:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/matchers/Contains ./failing/matchers/Contains
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
............................................................................... ...............................................................................
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
CHECK_THAT( testStringForMatching() Contains( "not there" ) ) CHECK_THAT( testStringForMatching() Contains( "not there" ) )
with expansion: with expansion:
"this string contains 'abc' as a substring" contains: "not there" "this string contains 'abc' as a substring" contains: "not there"
@ -610,10 +610,10 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/matchers/StartsWith ./failing/matchers/StartsWith
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
............................................................................... ...............................................................................
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
CHECK_THAT( testStringForMatching() StartsWith( "string" ) ) CHECK_THAT( testStringForMatching() StartsWith( "string" ) )
with expansion: with expansion:
"this string contains 'abc' as a substring" starts with: "string" "this string contains 'abc' as a substring" starts with: "string"
@ -621,10 +621,10 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/matchers/EndsWith ./failing/matchers/EndsWith
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
............................................................................... ...............................................................................
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
CHECK_THAT( testStringForMatching() EndsWith( "this" ) ) CHECK_THAT( testStringForMatching() EndsWith( "this" ) )
with expansion: with expansion:
"this string contains 'abc' as a substring" ends with: "this" "this string contains 'abc' as a substring" ends with: "this"
@ -632,10 +632,10 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/matchers/Equals ./failing/matchers/Equals
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
............................................................................... ...............................................................................
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
CHECK_THAT( testStringForMatching() Equals( "something else" ) ) CHECK_THAT( testStringForMatching() Equals( "something else" ) )
with expansion: with expansion:
"this string contains 'abc' as a substring" equals: "something else" "this string contains 'abc' as a substring" equals: "something else"
@ -643,30 +643,30 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/CatchSectionInfiniteLoop ./failing/CatchSectionInfiniteLoop
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
............................................................................... ...............................................................................
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
explicitly with message: explicitly with message:
to infinity and beyond to infinity and beyond
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/CatchSectionInfiniteLoop ./failing/CatchSectionInfiniteLoop
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
............................................................................... ...............................................................................
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
explicitly with message: explicitly with message:
to infinity and beyond to infinity and beyond
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/CatchSectionInfiniteLoop ./failing/CatchSectionInfiniteLoop
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
............................................................................... ...............................................................................
MiscTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp: FAILED:
explicitly with message: explicitly with message:
to infinity and beyond to infinity and beyond
@ -683,15 +683,15 @@ hello
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/Tricky/non streamable type ./failing/Tricky/non streamable type
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
TrickyTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp
............................................................................... ...............................................................................
TrickyTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp: FAILED:
CHECK( &o1 == &o2 ) CHECK( &o1 == &o2 )
with expansion: with expansion:
0x<hex digits> == 0x<hex digits> 0x<hex digits> == 0x<hex digits>
TrickyTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp: FAILED:
CHECK( o1 == o2 ) CHECK( o1 == o2 )
with expansion: with expansion:
{?} == {?} {?} == {?}
@ -699,10 +699,10 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/string literals ./failing/string literals
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
TrickyTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp
............................................................................... ...............................................................................
TrickyTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp: FAILED:
REQUIRE( std::string( "first" ) == "second" ) REQUIRE( std::string( "first" ) == "second" )
with expansion: with expansion:
"first" == "second" "first" == "second"

File diff suppressed because it is too large Load Diff

View File

@ -6,40 +6,40 @@ Run with -? for options
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./succeeding/Approx/simple ./succeeding/Approx/simple
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ApproxTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp
............................................................................... ...............................................................................
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( d == Approx( 1.23 ) ) REQUIRE( d == Approx( 1.23 ) )
with expansion: with expansion:
1.23 == Approx( 1.23 ) 1.23 == Approx( 1.23 )
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( d != Approx( 1.22 ) ) REQUIRE( d != Approx( 1.22 ) )
with expansion: with expansion:
1.23 != Approx( 1.22 ) 1.23 != Approx( 1.22 )
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( d != Approx( 1.24 ) ) REQUIRE( d != Approx( 1.24 ) )
with expansion: with expansion:
1.23 != Approx( 1.24 ) 1.23 != Approx( 1.24 )
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( Approx( d ) == 1.23 ) REQUIRE( Approx( d ) == 1.23 )
with expansion: with expansion:
Approx( 1.23 ) == 1.23 Approx( 1.23 ) == 1.23
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( Approx( d ) != 1.22 ) REQUIRE( Approx( d ) != 1.22 )
with expansion: with expansion:
Approx( 1.23 ) != 1.22 Approx( 1.23 ) != 1.22
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( Approx( d ) != 1.24 ) REQUIRE( Approx( d ) != 1.24 )
with expansion: with expansion:
@ -48,16 +48,16 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./succeeding/Approx/epsilon ./succeeding/Approx/epsilon
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ApproxTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp
............................................................................... ...............................................................................
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( d != Approx( 1.231 ) ) REQUIRE( d != Approx( 1.231 ) )
with expansion: with expansion:
1.23 != Approx( 1.231 ) 1.23 != Approx( 1.231 )
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( d == Approx( 1.231 ).epsilon( 0.1 ) ) REQUIRE( d == Approx( 1.231 ).epsilon( 0.1 ) )
with expansion: with expansion:
@ -66,16 +66,16 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./succeeding/Approx/float ./succeeding/Approx/float
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ApproxTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp
............................................................................... ...............................................................................
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( 1.23f == Approx( 1.23f ) ) REQUIRE( 1.23f == Approx( 1.23f ) )
with expansion: with expansion:
1.23 == Approx( 1.23 ) 1.23 == Approx( 1.23 )
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( 0.0f == Approx( 0.0f ) ) REQUIRE( 0.0f == Approx( 0.0f ) )
with expansion: with expansion:
@ -84,48 +84,48 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./succeeding/Approx/int ./succeeding/Approx/int
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ApproxTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp
............................................................................... ...............................................................................
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( 1 == Approx( 1 ) ) REQUIRE( 1 == Approx( 1 ) )
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( 0 == Approx( 0 ) ) REQUIRE( 0 == Approx( 0 ) )
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./succeeding/Approx/mixed ./succeeding/Approx/mixed
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ApproxTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp
............................................................................... ...............................................................................
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( 1.0f == Approx( 1 ) ) REQUIRE( 1.0f == Approx( 1 ) )
with expansion: with expansion:
1 == Approx( 1 ) 1 == Approx( 1 )
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( 0 == Approx( dZero) ) REQUIRE( 0 == Approx( dZero) )
with expansion: with expansion:
0 == Approx( 0 ) 0 == Approx( 0 )
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( 0 == Approx( dSmall ).epsilon( 0.001 ) ) REQUIRE( 0 == Approx( dSmall ).epsilon( 0.001 ) )
with expansion: with expansion:
0 == Approx( 1e-05 ) 0 == Approx( 1e-05 )
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( 1.234f == Approx( dMedium ) ) REQUIRE( 1.234f == Approx( dMedium ) )
with expansion: with expansion:
1.234 == Approx( 1.234 ) 1.234 == Approx( 1.234 )
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( dMedium == Approx( 1.234f ) ) REQUIRE( dMedium == Approx( 1.234f ) )
with expansion: with expansion:
@ -134,52 +134,52 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./succeeding/Approx/custom ./succeeding/Approx/custom
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ApproxTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp
............................................................................... ...............................................................................
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( d == approx( 1.23 ) ) REQUIRE( d == approx( 1.23 ) )
with expansion: with expansion:
1.23 == Approx( 1.23 ) 1.23 == Approx( 1.23 )
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( d == approx( 1.22 ) ) REQUIRE( d == approx( 1.22 ) )
with expansion: with expansion:
1.23 == Approx( 1.22 ) 1.23 == Approx( 1.22 )
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( d == approx( 1.24 ) ) REQUIRE( d == approx( 1.24 ) )
with expansion: with expansion:
1.23 == Approx( 1.24 ) 1.23 == Approx( 1.24 )
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( d != approx( 1.25 ) ) REQUIRE( d != approx( 1.25 ) )
with expansion: with expansion:
1.23 != Approx( 1.25 ) 1.23 != Approx( 1.25 )
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( approx( d ) == 1.23 ) REQUIRE( approx( d ) == 1.23 )
with expansion: with expansion:
Approx( 1.23 ) == 1.23 Approx( 1.23 ) == 1.23
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( approx( d ) == 1.22 ) REQUIRE( approx( d ) == 1.22 )
with expansion: with expansion:
Approx( 1.23 ) == 1.22 Approx( 1.23 ) == 1.22
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( approx( d ) == 1.24 ) REQUIRE( approx( d ) == 1.24 )
with expansion: with expansion:
Approx( 1.23 ) == 1.24 Approx( 1.23 ) == 1.24
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( approx( d ) != 1.25 ) REQUIRE( approx( d ) != 1.25 )
with expansion: with expansion:
@ -188,16 +188,16 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Approximate PI Approximate PI
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ApproxTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp
............................................................................... ...............................................................................
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) ) REQUIRE( divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) )
with expansion: with expansion:
3.1428571429 == Approx( 3.141 ) 3.1428571429 == Approx( 3.141 )
ApproxTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ApproxTests.cpp:
PASSED: PASSED:
REQUIRE( divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) ) REQUIRE( divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) )
with expansion: with expansion:
@ -206,10 +206,10 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./succeeding/TestClass/succeedingCase ./succeeding/TestClass/succeedingCase
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ClassTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ClassTests.cpp
............................................................................... ...............................................................................
ClassTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ClassTests.cpp:
PASSED: PASSED:
REQUIRE( s == "hello" ) REQUIRE( s == "hello" )
with expansion: with expansion:
@ -218,10 +218,10 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/TestClass/failingCase ./failing/TestClass/failingCase
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ClassTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ClassTests.cpp
............................................................................... ...............................................................................
ClassTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ClassTests.cpp: FAILED:
REQUIRE( s == "world" ) REQUIRE( s == "world" )
with expansion: with expansion:
"hello" == "world" "hello" == "world"
@ -229,10 +229,10 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./succeeding/Fixture/succeedingCase ./succeeding/Fixture/succeedingCase
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ClassTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ClassTests.cpp
............................................................................... ...............................................................................
ClassTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ClassTests.cpp:
PASSED: PASSED:
REQUIRE( m_a == 1 ) REQUIRE( m_a == 1 )
with expansion: with expansion:
@ -241,10 +241,10 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/Fixture/failingCase ./failing/Fixture/failingCase
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ClassTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ClassTests.cpp
............................................................................... ...............................................................................
ClassTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ClassTests.cpp: FAILED:
REQUIRE( m_a == 2 ) REQUIRE( m_a == 2 )
with expansion: with expansion:
1 == 2 1 == 2
@ -252,46 +252,46 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./succeeding/conditions/equality ./succeeding/conditions/equality
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
............................................................................... ...............................................................................
ConditionTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp:
PASSED: PASSED:
REQUIRE( data.int_seven == 7 ) REQUIRE( data.int_seven == 7 )
with expansion: with expansion:
7 == 7 7 == 7
ConditionTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp:
PASSED: PASSED:
REQUIRE( data.float_nine_point_one == Approx( 9.1f ) ) REQUIRE( data.float_nine_point_one == Approx( 9.1f ) )
with expansion: with expansion:
9.1 == Approx( 9.1 ) 9.1 == Approx( 9.1 )
ConditionTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp:
PASSED: PASSED:
REQUIRE( data.double_pi == Approx( 3.1415926535 ) ) REQUIRE( data.double_pi == Approx( 3.1415926535 ) )
with expansion: with expansion:
3.1415926535 == Approx( 3.14159 ) 3.1415926535 == Approx( 3.14159 )
ConditionTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp:
PASSED: PASSED:
REQUIRE( data.str_hello == "hello" ) REQUIRE( data.str_hello == "hello" )
with expansion: with expansion:
"hello" == "hello" "hello" == "hello"
ConditionTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp:
PASSED: PASSED:
REQUIRE( "hello" == data.str_hello ) REQUIRE( "hello" == data.str_hello )
with expansion: with expansion:
"hello" == "hello" "hello" == "hello"
ConditionTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp:
PASSED: PASSED:
REQUIRE( data.str_hello.size() == 5 ) REQUIRE( data.str_hello.size() == 5 )
with expansion: with expansion:
5 == 5 5 == 5
ConditionTests.cpp: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp:
PASSED: PASSED:
REQUIRE( x == Approx( 1.3 ) ) REQUIRE( x == Approx( 1.3 ) )
with expansion: with expansion:
@ -300,15 +300,15 @@ with expansion:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
./failing/conditions/equality ./failing/conditions/equality
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
............................................................................... ...............................................................................
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.int_seven == 6 ) CHECK( data.int_seven == 6 )
with expansion: with expansion:
7 == 6 7 == 6
ConditionTests.cpp: FAILED: Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp: FAILED:
CHECK( data.int_seven == 8 ) CHECK( data.int_seven == 8 )
with expansion: with expansion:
7 == 8 7 == 8

View File

@ -10,133 +10,133 @@
<testcase classname="TestClass" name="./succeeding/TestClass/succeedingCase" time="{duration}"/> <testcase classname="TestClass" name="./succeeding/TestClass/succeedingCase" time="{duration}"/>
<testcase classname="TestClass" name="./failing/TestClass/failingCase" time="{duration}"> <testcase classname="TestClass" name="./failing/TestClass/failingCase" time="{duration}">
<failure message="&quot;hello&quot; == &quot;world&quot;" type="REQUIRE"> <failure message="&quot;hello&quot; == &quot;world&quot;" type="REQUIRE">
ClassTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ClassTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="Fixture" name="./succeeding/Fixture/succeedingCase" time="{duration}"/> <testcase classname="Fixture" name="./succeeding/Fixture/succeedingCase" time="{duration}"/>
<testcase classname="Fixture" name="./failing/Fixture/failingCase" time="{duration}"> <testcase classname="Fixture" name="./failing/Fixture/failingCase" time="{duration}">
<failure message="1 == 2" type="REQUIRE"> <failure message="1 == 2" type="REQUIRE">
ClassTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ClassTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./succeeding/conditions/equality" time="{duration}"/> <testcase classname="global" name="./succeeding/conditions/equality" time="{duration}"/>
<testcase classname="global" name="./failing/conditions/equality" time="{duration}"> <testcase classname="global" name="./failing/conditions/equality" time="{duration}">
<failure message="7 == 6" type="CHECK"> <failure message="7 == 6" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="7 == 8" type="CHECK"> <failure message="7 == 8" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="7 == 0" type="CHECK"> <failure message="7 == 0" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="9.1 == Approx( 9.11 )" type="CHECK"> <failure message="9.1 == Approx( 9.11 )" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="9.1 == Approx( 9 )" type="CHECK"> <failure message="9.1 == Approx( 9 )" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="9.1 == Approx( 1 )" type="CHECK"> <failure message="9.1 == Approx( 1 )" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="9.1 == Approx( 0 )" type="CHECK"> <failure message="9.1 == Approx( 0 )" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="3.1415926535 == Approx( 3.1415 )" type="CHECK"> <failure message="3.1415926535 == Approx( 3.1415 )" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="&quot;hello&quot; == &quot;goodbye&quot;" type="CHECK"> <failure message="&quot;hello&quot; == &quot;goodbye&quot;" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="&quot;hello&quot; == &quot;hell&quot;" type="CHECK"> <failure message="&quot;hello&quot; == &quot;hell&quot;" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="&quot;hello&quot; == &quot;hello1&quot;" type="CHECK"> <failure message="&quot;hello&quot; == &quot;hello1&quot;" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="5 == 6" type="CHECK"> <failure message="5 == 6" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="1.3 == Approx( 1.301 )" type="CHECK"> <failure message="1.3 == Approx( 1.301 )" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./succeeding/conditions/inequality" time="{duration}"/> <testcase classname="global" name="./succeeding/conditions/inequality" time="{duration}"/>
<testcase classname="global" name="./failing/conditions/inequality" time="{duration}"> <testcase classname="global" name="./failing/conditions/inequality" time="{duration}">
<failure message="7 != 7" type="CHECK"> <failure message="7 != 7" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="9.1 != Approx( 9.1 )" type="CHECK"> <failure message="9.1 != Approx( 9.1 )" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="3.1415926535 != Approx( 3.14159 )" type="CHECK"> <failure message="3.1415926535 != Approx( 3.14159 )" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="&quot;hello&quot; != &quot;hello&quot;" type="CHECK"> <failure message="&quot;hello&quot; != &quot;hello&quot;" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="5 != 5" type="CHECK"> <failure message="5 != 5" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./succeeding/conditions/ordered" time="{duration}"/> <testcase classname="global" name="./succeeding/conditions/ordered" time="{duration}"/>
<testcase classname="global" name="./failing/conditions/ordered" time="{duration}"> <testcase classname="global" name="./failing/conditions/ordered" time="{duration}">
<failure message="7 > 7" type="CHECK"> <failure message="7 > 7" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="7 &lt; 7" type="CHECK"> <failure message="7 &lt; 7" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="7 > 8" type="CHECK"> <failure message="7 > 8" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="7 &lt; 6" type="CHECK"> <failure message="7 &lt; 6" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="7 &lt; 0" type="CHECK"> <failure message="7 &lt; 0" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="7 &lt; -1" type="CHECK"> <failure message="7 &lt; -1" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="7 >= 8" type="CHECK"> <failure message="7 >= 8" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="7 &lt;= 6" type="CHECK"> <failure message="7 &lt;= 6" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="9.1 &lt; 9" type="CHECK"> <failure message="9.1 &lt; 9" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="9.1 > 10" type="CHECK"> <failure message="9.1 > 10" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="9.1 > 9.2" type="CHECK"> <failure message="9.1 > 9.2" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="&quot;hello&quot; > &quot;hello&quot;" type="CHECK"> <failure message="&quot;hello&quot; > &quot;hello&quot;" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="&quot;hello&quot; &lt; &quot;hello&quot;" type="CHECK"> <failure message="&quot;hello&quot; &lt; &quot;hello&quot;" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="&quot;hello&quot; > &quot;hellp&quot;" type="CHECK"> <failure message="&quot;hello&quot; > &quot;hellp&quot;" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="&quot;hello&quot; > &quot;z&quot;" type="CHECK"> <failure message="&quot;hello&quot; > &quot;z&quot;" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="&quot;hello&quot; &lt; &quot;hellm&quot;" type="CHECK"> <failure message="&quot;hello&quot; &lt; &quot;hellm&quot;" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="&quot;hello&quot; &lt; &quot;a&quot;" type="CHECK"> <failure message="&quot;hello&quot; &lt; &quot;a&quot;" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="&quot;hello&quot; >= &quot;z&quot;" type="CHECK"> <failure message="&quot;hello&quot; >= &quot;z&quot;" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="&quot;hello&quot; &lt;= &quot;a&quot;" type="CHECK"> <failure message="&quot;hello&quot; &lt;= &quot;a&quot;" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./succeeding/conditions/int literals" time="{duration}"/> <testcase classname="global" name="./succeeding/conditions/int literals" time="{duration}"/>
@ -148,90 +148,90 @@ ConditionTests.cpp
<testcase classname="global" name="./succeeding/conditions/not" time="{duration}"/> <testcase classname="global" name="./succeeding/conditions/not" time="{duration}"/>
<testcase classname="global" name="./failing/conditions/not" time="{duration}"> <testcase classname="global" name="./failing/conditions/not" time="{duration}">
<failure message="false != false" type="CHECK"> <failure message="false != false" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="true != true" type="CHECK"> <failure message="true != true" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="false" type="CHECK"> <failure message="false" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="!true" type="CHECK_FALSE"> <failure message="!true" type="CHECK_FALSE">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="false" type="CHECK"> <failure message="false" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="!true" type="CHECK_FALSE"> <failure message="!true" type="CHECK_FALSE">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="false" type="CHECK"> <failure message="false" type="CHECK">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
<failure message="!(1 == 1)" type="CHECK_FALSE"> <failure message="!(1 == 1)" type="CHECK_FALSE">
ConditionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ConditionTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./succeeding/exceptions/explicit" time="{duration}"/> <testcase classname="global" name="./succeeding/exceptions/explicit" time="{duration}"/>
<testcase classname="global" name="./failing/exceptions/explicit" time="{duration}"> <testcase classname="global" name="./failing/exceptions/explicit" time="{duration}">
<error message="thisThrows()" type="CHECK_THROWS_AS"> <error message="thisThrows()" type="CHECK_THROWS_AS">
expected exception expected exception
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
</error> </error>
<failure message="thisDoesntThrow()" type="CHECK_THROWS_AS"> <failure message="thisDoesntThrow()" type="CHECK_THROWS_AS">
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
</failure> </failure>
<error message="thisThrows()" type="CHECK_NOTHROW"> <error message="thisThrows()" type="CHECK_NOTHROW">
expected exception expected exception
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
</error> </error>
</testcase> </testcase>
<testcase classname="global" name="./failing/exceptions/implicit" time="{duration}"> <testcase classname="global" name="./failing/exceptions/implicit" time="{duration}">
<error type="TEST_CASE"> <error type="TEST_CASE">
unexpected exception unexpected exception
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
</error> </error>
</testcase> </testcase>
<testcase classname="global" name="./failing/exceptions/implicit/2" time="{duration}"> <testcase classname="global" name="./failing/exceptions/implicit/2" time="{duration}">
<error message="{Unknown expression after the reported line}"> <error message="{Unknown expression after the reported line}">
unexpected exception unexpected exception
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
</error> </error>
</testcase> </testcase>
<testcase classname="./failing/exceptions/implicit/3" name="section name" time="{duration}"> <testcase classname="./failing/exceptions/implicit/3" name="section name" time="{duration}">
<error type="TEST_CASE"> <error type="TEST_CASE">
unexpected exception unexpected exception
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
</error> </error>
</testcase> </testcase>
<testcase classname="global" name="./failing/exceptions/implicit/4" time="{duration}"> <testcase classname="global" name="./failing/exceptions/implicit/4" time="{duration}">
<error message="thisThrows() == 0" type="CHECK"> <error message="thisThrows() == 0" type="CHECK">
expected exception expected exception
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
</error> </error>
</testcase> </testcase>
<testcase classname="global" name="./failing/exceptions/custom" time="{duration}"> <testcase classname="global" name="./failing/exceptions/custom" time="{duration}">
<error type="TEST_CASE"> <error type="TEST_CASE">
custom exception custom exception
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
</error> </error>
</testcase> </testcase>
<testcase classname="global" name="./failing/exceptions/custom/nothrow" time="{duration}"> <testcase classname="global" name="./failing/exceptions/custom/nothrow" time="{duration}">
<error message="throwCustom()" type="REQUIRE_NOTHROW"> <error message="throwCustom()" type="REQUIRE_NOTHROW">
custom exception - not std custom exception - not std
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
</error> </error>
</testcase> </testcase>
<testcase classname="global" name="./failing/exceptions/custom/throw" time="{duration}"> <testcase classname="global" name="./failing/exceptions/custom/throw" time="{duration}">
<error message="throwCustom()" type="REQUIRE_THROWS_AS"> <error message="throwCustom()" type="REQUIRE_THROWS_AS">
custom exception - not std custom exception - not std
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
</error> </error>
</testcase> </testcase>
<testcase classname="global" name="./failing/exceptions/custom/double" time="{duration}"> <testcase classname="global" name="./failing/exceptions/custom/double" time="{duration}">
<error type="TEST_CASE"> <error type="TEST_CASE">
3.14 3.14
ExceptionTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/ExceptionTests.cpp
</error> </error>
</testcase> </testcase>
<testcase classname="global" name="./succeeding/exceptions/notimplemented" time="{duration}"/> <testcase classname="global" name="./succeeding/exceptions/notimplemented" time="{duration}"/>
@ -243,35 +243,35 @@ ExceptionTests.cpp
<failure message="2 == 1" type="REQUIRE"> <failure message="2 == 1" type="REQUIRE">
this message should be logged this message should be logged
so should this so should this
MessageTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./mixed/message/info/2" time="{duration}"> <testcase classname="global" name="./mixed/message/info/2" time="{duration}">
<failure message="2 == 1" type="CHECK"> <failure message="2 == 1" type="CHECK">
this message should be logged this message should be logged
MessageTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp
</failure> </failure>
<failure message="2 == 0" type="CHECK"> <failure message="2 == 0" type="CHECK">
and this, but later and this, but later
MessageTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./failing/message/fail" time="{duration}"> <testcase classname="global" name="./failing/message/fail" time="{duration}">
<failure type="FAIL"> <failure type="FAIL">
This is a failure This is a failure
MessageTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="./failing/message/sections" name="one" time="{duration}"> <testcase classname="./failing/message/sections" name="one" time="{duration}">
<failure type="FAIL"> <failure type="FAIL">
Message from section one Message from section one
MessageTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="./failing/message/sections" name="two" time="{duration}"> <testcase classname="./failing/message/sections" name="two" time="{duration}">
<failure type="FAIL"> <failure type="FAIL">
Message from section two Message from section two
MessageTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="./succeeding/message/sections/stdout" name="two" time="{duration}"> <testcase classname="./succeeding/message/sections/stdout" name="two" time="{duration}">
@ -284,14 +284,14 @@ Message from section two
<failure message="10 &lt; 10" type="REQUIRE"> <failure message="10 &lt; 10" type="REQUIRE">
current counter 10 current counter 10
i := 10 i := 10
MessageTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./succeeding/nofail" time="{duration}"/> <testcase classname="global" name="./succeeding/nofail" time="{duration}"/>
<testcase classname="global" name="just failure" time="{duration}"> <testcase classname="global" name="just failure" time="{duration}">
<failure type="FAIL"> <failure type="FAIL">
Previous info should not be seen Previous info should not be seen
MessageTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MessageTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="./succeeding/Misc/Sections" name="s1" time="{duration}"/> <testcase classname="./succeeding/Misc/Sections" name="s1" time="{duration}"/>
@ -300,40 +300,40 @@ MessageTests.cpp
<testcase classname="./succeeding/Misc/Sections/nested" name="s1/s2" time="{duration}"/> <testcase classname="./succeeding/Misc/Sections/nested" name="s1/s2" time="{duration}"/>
<testcase classname="./mixed/Misc/Sections/nested2" name="s1/s2" time="{duration}"> <testcase classname="./mixed/Misc/Sections/nested2" name="s1/s2" time="{duration}">
<failure message="1 == 2" type="REQUIRE"> <failure message="1 == 2" type="REQUIRE">
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="./mixed/Misc/Sections/nested2" name="s1/s3" time="{duration}"/> <testcase classname="./mixed/Misc/Sections/nested2" name="s1/s3" time="{duration}"/>
<testcase classname="./mixed/Misc/Sections/nested2" name="s1/s4" time="{duration}"/> <testcase classname="./mixed/Misc/Sections/nested2" name="s1/s4" time="{duration}"/>
<testcase classname="./mixed/Misc/Sections/loops" name="s1" time="{duration}"> <testcase classname="./mixed/Misc/Sections/loops" name="s1" time="{duration}">
<failure message="0 > 1" type="CHECK"> <failure message="0 > 1" type="CHECK">
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./mixed/Misc/loops" time="{duration}"> <testcase classname="global" name="./mixed/Misc/loops" time="{duration}">
<failure message="1 == 0" type="CHECK"> <failure message="1 == 0" type="CHECK">
Testing if fib[0] (1) is even Testing if fib[0] (1) is even
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
<failure message="1 == 0" type="CHECK"> <failure message="1 == 0" type="CHECK">
Testing if fib[1] (1) is even Testing if fib[1] (1) is even
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
<failure message="1 == 0" type="CHECK"> <failure message="1 == 0" type="CHECK">
Testing if fib[3] (3) is even Testing if fib[3] (3) is even
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
<failure message="1 == 0" type="CHECK"> <failure message="1 == 0" type="CHECK">
Testing if fib[4] (5) is even Testing if fib[4] (5) is even
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
<failure message="1 == 0" type="CHECK"> <failure message="1 == 0" type="CHECK">
Testing if fib[6] (13) is even Testing if fib[6] (13) is even
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
<failure message="1 == 0" type="CHECK"> <failure message="1 == 0" type="CHECK">
Testing if fib[7] (21) is even Testing if fib[7] (21) is even
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./succeeding/Misc/stdout,stderr" time="{duration}"> <testcase classname="global" name="./succeeding/Misc/stdout,stderr" time="{duration}">
@ -349,53 +349,53 @@ An error
<failure message="false" type="REQUIRE"> <failure message="false" type="REQUIRE">
hi hi
i := 7 i := 7
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./succeeding/checkedif" time="{duration}"/> <testcase classname="global" name="./succeeding/checkedif" time="{duration}"/>
<testcase classname="global" name="./failing/checkedif" time="{duration}"> <testcase classname="global" name="./failing/checkedif" time="{duration}">
<failure message="false" type="CHECKED_IF"> <failure message="false" type="CHECKED_IF">
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
<failure message="false" type="REQUIRE"> <failure message="false" type="REQUIRE">
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./succeeding/checkedelse" time="{duration}"/> <testcase classname="global" name="./succeeding/checkedelse" time="{duration}"/>
<testcase classname="global" name="./failing/checkedelse" time="{duration}"> <testcase classname="global" name="./failing/checkedelse" time="{duration}">
<failure message="false" type="CHECKED_ELSE"> <failure message="false" type="CHECKED_ELSE">
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
<failure message="false" type="REQUIRE"> <failure message="false" type="REQUIRE">
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./manual/onechar" time="{duration}"> <testcase classname="global" name="./manual/onechar" time="{duration}">
<failure message="false" type="REQUIRE"> <failure message="false" type="REQUIRE">
3 3
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./succeeding/atomic if" time="{duration}"/> <testcase classname="global" name="./succeeding/atomic if" time="{duration}"/>
<testcase classname="global" name="./succeeding/matchers" time="{duration}"/> <testcase classname="global" name="./succeeding/matchers" time="{duration}"/>
<testcase classname="global" name="./failing/matchers/Contains" time="{duration}"> <testcase classname="global" name="./failing/matchers/Contains" time="{duration}">
<failure message="&quot;this string contains 'abc' as a substring&quot; contains: &quot;not there&quot;" type="CHECK_THAT"> <failure message="&quot;this string contains 'abc' as a substring&quot; contains: &quot;not there&quot;" type="CHECK_THAT">
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./failing/matchers/StartsWith" time="{duration}"> <testcase classname="global" name="./failing/matchers/StartsWith" time="{duration}">
<failure message="&quot;this string contains 'abc' as a substring&quot; starts with: &quot;string&quot;" type="CHECK_THAT"> <failure message="&quot;this string contains 'abc' as a substring&quot; starts with: &quot;string&quot;" type="CHECK_THAT">
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./failing/matchers/EndsWith" time="{duration}"> <testcase classname="global" name="./failing/matchers/EndsWith" time="{duration}">
<failure message="&quot;this string contains 'abc' as a substring&quot; ends with: &quot;this&quot;" type="CHECK_THAT"> <failure message="&quot;this string contains 'abc' as a substring&quot; ends with: &quot;this&quot;" type="CHECK_THAT">
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./failing/matchers/Equals" time="{duration}"> <testcase classname="global" name="./failing/matchers/Equals" time="{duration}">
<failure message="&quot;this string contains 'abc' as a substring&quot; equals: &quot;something else&quot;" type="CHECK_THAT"> <failure message="&quot;this string contains 'abc' as a substring&quot; equals: &quot;something else&quot;" type="CHECK_THAT">
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="string" time="{duration}"/> <testcase classname="global" name="string" time="{duration}"/>
@ -413,15 +413,15 @@ MiscTests.cpp
<testcase classname="./failing/CatchSectionInfiniteLoop" name="root" time="{duration}"> <testcase classname="./failing/CatchSectionInfiniteLoop" name="root" time="{duration}">
<failure type="FAIL"> <failure type="FAIL">
to infinity and beyond to infinity and beyond
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
<failure type="FAIL"> <failure type="FAIL">
to infinity and beyond to infinity and beyond
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
<failure type="FAIL"> <failure type="FAIL">
to infinity and beyond to infinity and beyond
MiscTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="./failing/CatchSectionInfiniteLoop" name="Outer/Inner" time="{duration}"/> <testcase classname="./failing/CatchSectionInfiniteLoop" name="Outer/Inner" time="{duration}"/>
@ -496,15 +496,15 @@ hello
<testcase classname="global" name="./inprogress/failing/Tricky/compound lhs" time="{duration}"/> <testcase classname="global" name="./inprogress/failing/Tricky/compound lhs" time="{duration}"/>
<testcase classname="global" name="./failing/Tricky/non streamable type" time="{duration}"> <testcase classname="global" name="./failing/Tricky/non streamable type" time="{duration}">
<failure message="0x<hex digits> == 0x<hex digits>" type="CHECK"> <failure message="0x<hex digits> == 0x<hex digits>" type="CHECK">
TrickyTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp
</failure> </failure>
<failure message="{?} == {?}" type="CHECK"> <failure message="{?} == {?}" type="CHECK">
TrickyTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./failing/string literals" time="{duration}"> <testcase classname="global" name="./failing/string literals" time="{duration}">
<failure message="&quot;first&quot; == &quot;second&quot;" type="REQUIRE"> <failure message="&quot;first&quot; == &quot;second&quot;" type="REQUIRE">
TrickyTests.cpp Users/philnash/Dev/OSS/Catch/projects/SelfTest/TrickyTests.cpp
</failure> </failure>
</testcase> </testcase>
<testcase classname="global" name="./succeeding/side-effects" time="{duration}"/> <testcase classname="global" name="./succeeding/side-effects" time="{duration}"/>

View File

@ -5,7 +5,9 @@ import re
from scriptCommon import catchPath from scriptCommon import catchPath
filenameParser = re.compile( r'\s*.*/(.*\..pp):([0-9]*)(.*)' ) rootPath = os.path.join( catchPath, 'projects/SelfTest/Baselines' )
filenameParser = re.compile( r'.*?/(.*\..pp):([0-9]*)(.*)' )
lineNumberParser = re.compile( r'(.*)line="[0-9]*"(.*)' ) lineNumberParser = re.compile( r'(.*)line="[0-9]*"(.*)' )
hexParser = re.compile( r'(.*)\b(0[xX][0-9a-fA-F]+)\b(.*)' ) hexParser = re.compile( r'(.*)\b(0[xX][0-9a-fA-F]+)\b(.*)' )
durationsParser = re.compile( r'(.*)time="[0-9]*\.[0-9]*"(.*)' ) durationsParser = re.compile( r'(.*)time="[0-9]*\.[0-9]*"(.*)' )
@ -40,9 +42,9 @@ def filterLine( line ):
def approve( baseName, args ): def approve( baseName, args ):
global overallResult global overallResult
args[0:0] = [cmdPath] args[0:0] = [cmdPath]
baselinesPath = os.path.join( catchPath, 'projects/SelfTest/Baselines/{0}.approved.txt'.format( baseName ) ) baselinesPath = os.path.join( rootPath, '{0}.approved.txt'.format( baseName ) )
rawResultsPath = os.path.join( catchPath, 'projects/SelfTest/Baselines/_{0}.tmp'.format( baseName ) ) rawResultsPath = os.path.join( rootPath, '_{0}.tmp'.format( baseName ) )
filteredResultsPath = os.path.join( catchPath, 'projects/SelfTest/Baselines/{0}.unapproved.txt'.format( baseName ) ) filteredResultsPath = os.path.join( rootPath, '{0}.unapproved.txt'.format( baseName ) )
f = open( rawResultsPath, 'w' ) f = open( rawResultsPath, 'w' )
subprocess.call( args, stdout=f, stderr=f ) subprocess.call( args, stdout=f, stderr=f )