2013-09-27 20:01:14 +02:00
|
|
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2013-09-30 09:05:14 +02:00
|
|
|
CatchSelfTest is a <version> host application.
|
2013-09-27 20:01:14 +02:00
|
|
|
Run with -? for options
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/TestClass/failingCase
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
ClassTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ClassTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
REQUIRE( s == "world" )
|
|
|
|
with expansion:
|
|
|
|
"hello" == "world"
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/Fixture/failingCase
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
ClassTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ClassTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
REQUIRE( m_a == 2 )
|
|
|
|
with expansion:
|
|
|
|
1 == 2
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/conditions/equality
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.int_seven == 6 )
|
|
|
|
with expansion:
|
|
|
|
7 == 6
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.int_seven == 8 )
|
|
|
|
with expansion:
|
|
|
|
7 == 8
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.int_seven == 0 )
|
|
|
|
with expansion:
|
|
|
|
7 == 0
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.float_nine_point_one == Approx( 9.11f ) )
|
|
|
|
with expansion:
|
|
|
|
9.1 == Approx( 9.11 )
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.float_nine_point_one == Approx( 9.0f ) )
|
|
|
|
with expansion:
|
|
|
|
9.1 == Approx( 9 )
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.float_nine_point_one == Approx( 1 ) )
|
|
|
|
with expansion:
|
|
|
|
9.1 == Approx( 1 )
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.float_nine_point_one == Approx( 0 ) )
|
|
|
|
with expansion:
|
|
|
|
9.1 == Approx( 0 )
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.double_pi == Approx( 3.1415 ) )
|
|
|
|
with expansion:
|
|
|
|
3.1415926535 == Approx( 3.1415 )
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.str_hello == "goodbye" )
|
|
|
|
with expansion:
|
|
|
|
"hello" == "goodbye"
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.str_hello == "hell" )
|
|
|
|
with expansion:
|
|
|
|
"hello" == "hell"
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.str_hello == "hello1" )
|
|
|
|
with expansion:
|
|
|
|
"hello" == "hello1"
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.str_hello.size() == 6 )
|
|
|
|
with expansion:
|
|
|
|
5 == 6
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( x == Approx( 1.301 ) )
|
|
|
|
with expansion:
|
|
|
|
1.3 == Approx( 1.301 )
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/conditions/inequality
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.int_seven != 7 )
|
|
|
|
with expansion:
|
|
|
|
7 != 7
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.float_nine_point_one != Approx( 9.1f ) )
|
|
|
|
with expansion:
|
|
|
|
9.1 != Approx( 9.1 )
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.double_pi != Approx( 3.1415926535 ) )
|
|
|
|
with expansion:
|
|
|
|
3.1415926535 != Approx( 3.14159 )
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.str_hello != "hello" )
|
|
|
|
with expansion:
|
|
|
|
"hello" != "hello"
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.str_hello.size() != 5 )
|
|
|
|
with expansion:
|
|
|
|
5 != 5
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/conditions/ordered
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.int_seven > 7 )
|
|
|
|
with expansion:
|
|
|
|
7 > 7
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.int_seven < 7 )
|
|
|
|
with expansion:
|
|
|
|
7 < 7
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.int_seven > 8 )
|
|
|
|
with expansion:
|
|
|
|
7 > 8
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.int_seven < 6 )
|
|
|
|
with expansion:
|
|
|
|
7 < 6
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.int_seven < 0 )
|
|
|
|
with expansion:
|
|
|
|
7 < 0
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.int_seven < -1 )
|
|
|
|
with expansion:
|
|
|
|
7 < -1
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.int_seven >= 8 )
|
|
|
|
with expansion:
|
|
|
|
7 >= 8
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.int_seven <= 6 )
|
|
|
|
with expansion:
|
|
|
|
7 <= 6
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.float_nine_point_one < 9 )
|
|
|
|
with expansion:
|
|
|
|
9.1 < 9
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.float_nine_point_one > 10 )
|
|
|
|
with expansion:
|
|
|
|
9.1 > 10
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.float_nine_point_one > 9.2 )
|
|
|
|
with expansion:
|
|
|
|
9.1 > 9.2
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.str_hello > "hello" )
|
|
|
|
with expansion:
|
|
|
|
"hello" > "hello"
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.str_hello < "hello" )
|
|
|
|
with expansion:
|
|
|
|
"hello" < "hello"
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.str_hello > "hellp" )
|
|
|
|
with expansion:
|
|
|
|
"hello" > "hellp"
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.str_hello > "z" )
|
|
|
|
with expansion:
|
|
|
|
"hello" > "z"
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.str_hello < "hellm" )
|
|
|
|
with expansion:
|
|
|
|
"hello" < "hellm"
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.str_hello < "a" )
|
|
|
|
with expansion:
|
|
|
|
"hello" < "a"
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.str_hello >= "z" )
|
|
|
|
with expansion:
|
|
|
|
"hello" >= "z"
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( data.str_hello <= "a" )
|
|
|
|
with expansion:
|
|
|
|
"hello" <= "a"
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/conditions/not
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( false != false )
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( true != true )
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( !true )
|
|
|
|
with expansion:
|
|
|
|
false
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK_FALSE( true )
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( !trueValue )
|
|
|
|
with expansion:
|
|
|
|
false
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK_FALSE( trueValue )
|
|
|
|
with expansion:
|
|
|
|
!true
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( !(1 == 1) )
|
|
|
|
with expansion:
|
|
|
|
false
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK_FALSE( 1 == 1 )
|
|
|
|
with expansion:
|
|
|
|
!(1 == 1)
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/exceptions/explicit
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK_THROWS_AS( thisThrows() )
|
|
|
|
due to unexpected exception with message:
|
|
|
|
expected exception
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK_THROWS_AS( thisDoesntThrow() )
|
|
|
|
because no exception was thrown where one was expected:
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK_NOTHROW( thisThrows() )
|
|
|
|
due to unexpected exception with message:
|
|
|
|
expected exception
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/exceptions/implicit
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
due to unexpected exception with message:
|
|
|
|
unexpected exception
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/exceptions/implicit/2
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
{Unknown expression after the reported line}
|
|
|
|
due to unexpected exception with message:
|
|
|
|
unexpected exception
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/exceptions/implicit/3
|
|
|
|
section name
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
due to unexpected exception with message:
|
|
|
|
unexpected exception
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/exceptions/implicit/4
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( thisThrows() == 0 )
|
|
|
|
due to unexpected exception with message:
|
|
|
|
expected exception
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/exceptions/custom
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
due to unexpected exception with message:
|
|
|
|
custom exception
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/exceptions/custom/nothrow
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
REQUIRE_NOTHROW( throwCustom() )
|
|
|
|
due to unexpected exception with message:
|
|
|
|
custom exception - not std
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/exceptions/custom/throw
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
REQUIRE_THROWS_AS( throwCustom() )
|
|
|
|
due to unexpected exception with message:
|
|
|
|
custom exception - not std
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/exceptions/custom/double
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
ExceptionTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
due to unexpected exception with message:
|
|
|
|
3.14
|
|
|
|
|
2013-11-13 09:07:38 +01:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./succeeding/message
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
MessageTests.cpp:<line number>
|
|
|
|
...............................................................................
|
|
|
|
|
|
|
|
MessageTests.cpp:<line number>:
|
|
|
|
warning:
|
|
|
|
this is a warning
|
|
|
|
|
2013-09-27 20:01:14 +02:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/message/info/1
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MessageTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MessageTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
REQUIRE( a == 1 )
|
|
|
|
with expansion:
|
|
|
|
2 == 1
|
|
|
|
with messages:
|
|
|
|
this message should be logged
|
|
|
|
so should this
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./mixed/message/info/2
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MessageTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MessageTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( a == 1 )
|
|
|
|
with expansion:
|
|
|
|
2 == 1
|
|
|
|
with messages:
|
|
|
|
this message may be logged later
|
|
|
|
this message should be logged
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MessageTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( a == 0 )
|
|
|
|
with expansion:
|
|
|
|
2 == 0
|
|
|
|
with message:
|
|
|
|
and this, but later
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/message/fail
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MessageTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MessageTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
explicitly with message:
|
|
|
|
This is a failure
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/message/sections
|
|
|
|
one
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MessageTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MessageTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
explicitly with message:
|
|
|
|
Message from section one
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/message/sections
|
|
|
|
two
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MessageTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MessageTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
explicitly with message:
|
|
|
|
Message from section two
|
|
|
|
|
|
|
|
Message from section one
|
|
|
|
Message from section two
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./mixed/message/scoped
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MessageTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MessageTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
REQUIRE( i < 10 )
|
|
|
|
with expansion:
|
|
|
|
10 < 10
|
|
|
|
with messages:
|
|
|
|
current counter 10
|
|
|
|
i := 10
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
just failure
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MessageTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MessageTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
explicitly with message:
|
|
|
|
Previous info should not be seen
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./mixed/Misc/Sections/nested2
|
|
|
|
s1
|
|
|
|
s2
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
REQUIRE( a == b )
|
|
|
|
with expansion:
|
|
|
|
1 == 2
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./mixed/Misc/Sections/loops
|
|
|
|
s1
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( b > a )
|
|
|
|
with expansion:
|
|
|
|
0 > 1
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./mixed/Misc/loops
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( ( fib[i] % 2 ) == 0 )
|
|
|
|
with expansion:
|
|
|
|
1 == 0
|
|
|
|
with message:
|
|
|
|
Testing if fib[0] (1) is even
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( ( fib[i] % 2 ) == 0 )
|
|
|
|
with expansion:
|
|
|
|
1 == 0
|
|
|
|
with message:
|
|
|
|
Testing if fib[1] (1) is even
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( ( fib[i] % 2 ) == 0 )
|
|
|
|
with expansion:
|
|
|
|
1 == 0
|
|
|
|
with message:
|
|
|
|
Testing if fib[3] (3) is even
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( ( fib[i] % 2 ) == 0 )
|
|
|
|
with expansion:
|
|
|
|
1 == 0
|
|
|
|
with message:
|
|
|
|
Testing if fib[4] (5) is even
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( ( fib[i] % 2 ) == 0 )
|
|
|
|
with expansion:
|
|
|
|
1 == 0
|
|
|
|
with message:
|
|
|
|
Testing if fib[6] (13) is even
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( ( fib[i] % 2 ) == 0 )
|
|
|
|
with expansion:
|
|
|
|
1 == 0
|
|
|
|
with message:
|
|
|
|
Testing if fib[7] (21) is even
|
|
|
|
|
|
|
|
Some information
|
|
|
|
An error
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/info
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
REQUIRE( false )
|
|
|
|
with messages:
|
|
|
|
hi
|
|
|
|
i := 7
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/checkedif
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECKED_IF( flag )
|
|
|
|
with expansion:
|
|
|
|
false
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
REQUIRE( testCheckedIf( false ) )
|
|
|
|
with expansion:
|
|
|
|
false
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/checkedelse
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECKED_ELSE( flag )
|
|
|
|
with expansion:
|
|
|
|
false
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
REQUIRE( testCheckedElse( false ) )
|
|
|
|
with expansion:
|
|
|
|
false
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./manual/onechar
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
REQUIRE( false )
|
|
|
|
with message:
|
|
|
|
3
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/matchers/Contains
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK_THAT( testStringForMatching() Contains( "not there" ) )
|
|
|
|
with expansion:
|
|
|
|
"this string contains 'abc' as a substring" contains: "not there"
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/matchers/StartsWith
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK_THAT( testStringForMatching() StartsWith( "string" ) )
|
|
|
|
with expansion:
|
|
|
|
"this string contains 'abc' as a substring" starts with: "string"
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/matchers/EndsWith
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK_THAT( testStringForMatching() EndsWith( "this" ) )
|
|
|
|
with expansion:
|
|
|
|
"this string contains 'abc' as a substring" ends with: "this"
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/matchers/Equals
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK_THAT( testStringForMatching() Equals( "something else" ) )
|
|
|
|
with expansion:
|
|
|
|
"this string contains 'abc' as a substring" equals: "something else"
|
|
|
|
|
2013-11-13 09:07:38 +01:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
Nice descriptive name
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
MiscTests.cpp:<line number>
|
|
|
|
...............................................................................
|
|
|
|
|
|
|
|
MiscTests.cpp:<line number>:
|
|
|
|
warning:
|
|
|
|
This one ran
|
|
|
|
|
2013-09-27 20:01:14 +02:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/CatchSectionInfiniteLoop
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
explicitly with message:
|
|
|
|
to infinity and beyond
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/CatchSectionInfiniteLoop
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
explicitly with message:
|
|
|
|
to infinity and beyond
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/CatchSectionInfiniteLoop
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
explicitly with message:
|
|
|
|
to infinity and beyond
|
|
|
|
|
|
|
|
Message from section one
|
|
|
|
Message from section two
|
|
|
|
Some information
|
|
|
|
An error
|
|
|
|
Message from section one
|
|
|
|
Message from section two
|
|
|
|
Some information
|
|
|
|
An error
|
|
|
|
hello
|
|
|
|
hello
|
|
|
|
-------------------------------------------------------------------------------
|
2013-11-13 09:07:38 +01:00
|
|
|
./inprogress/failing/Tricky/trailing expression
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
TrickyTests.cpp:<line number>
|
|
|
|
...............................................................................
|
|
|
|
|
|
|
|
TrickyTests.cpp:<line number>:
|
|
|
|
warning:
|
|
|
|
Uncomment the code in this test to check that it gives a sensible compiler
|
|
|
|
error
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./inprogress/failing/Tricky/compound lhs
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
TrickyTests.cpp:<line number>
|
|
|
|
...............................................................................
|
|
|
|
|
|
|
|
TrickyTests.cpp:<line number>:
|
|
|
|
warning:
|
|
|
|
Uncomment the code in this test to check that it gives a sensible compiler
|
|
|
|
error
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-27 20:01:14 +02:00
|
|
|
./failing/Tricky/non streamable type
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
TrickyTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
TrickyTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( &o1 == &o2 )
|
|
|
|
with expansion:
|
|
|
|
0x<hex digits> == 0x<hex digits>
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
TrickyTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
CHECK( o1 == o2 )
|
|
|
|
with expansion:
|
|
|
|
{?} == {?}
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
./failing/string literals
|
|
|
|
-------------------------------------------------------------------------------
|
2013-09-30 09:01:10 +02:00
|
|
|
TrickyTests.cpp:<line number>
|
2013-09-27 20:01:14 +02:00
|
|
|
...............................................................................
|
|
|
|
|
2013-09-30 09:01:10 +02:00
|
|
|
TrickyTests.cpp:<line number>: FAILED:
|
2013-09-27 20:01:14 +02:00
|
|
|
REQUIRE( std::string( "first" ) == "second" )
|
|
|
|
with expansion:
|
|
|
|
"first" == "second"
|
|
|
|
|
|
|
|
===============================================================================
|
2013-10-23 16:35:07 +02:00
|
|
|
122 test cases - 35 failed (753 assertions - 90 failed)
|
2013-09-27 20:01:14 +02:00
|
|
|
|