diff --git a/include/internal/catch_runner_impl.hpp b/include/internal/catch_runner_impl.hpp index cf971539..589003c7 100644 --- a/include/internal/catch_runner_impl.hpp +++ b/include/internal/catch_runner_impl.hpp @@ -267,6 +267,7 @@ namespace Catch { TestCaseInfo const& testCaseInfo = m_activeTestCase->getTestCaseInfo(); SectionInfo testCaseSection( testCaseInfo.name, testCaseInfo.description, testCaseInfo.lineInfo ); m_reporter->sectionStarting( testCaseSection ); + Counts prevAssertions = m_totals.assertions; try { m_lastAssertionInfo = AssertionInfo( "TEST_CASE", testCaseInfo.lineInfo, "", ResultDisposition::Normal ); TestCaseTracker::Guard guard( *m_testCaseTracker ); @@ -297,7 +298,20 @@ namespace Catch { sectionEnded( it->info, it->prevAssertions ); m_unfinishedSections.clear(); m_messages.clear(); - SectionStats testCaseSectionStats( testCaseSection, Counts(), 0 ); // !TBD + + Counts assertions = m_totals.assertions - prevAssertions; +// !TBD? + bool missingAssertions = false; + if( assertions.total() == 0 && + m_config->warnAboutMissingAssertions() && + !m_testCaseTracker->currentSectionHasChildren() ) { + m_totals.assertions.failed++; + assertions.failed++; + missingAssertions = true; + + } + + SectionStats testCaseSectionStats( testCaseSection, assertions, missingAssertions ); m_reporter->sectionEnded( testCaseSectionStats ); } diff --git a/include/reporters/catch_reporter_console.hpp b/include/reporters/catch_reporter_console.hpp index 87a32500..af3523de 100644 --- a/include/reporters/catch_reporter_console.hpp +++ b/include/reporters/catch_reporter_console.hpp @@ -62,7 +62,11 @@ namespace Catch { if( _sectionStats.missingAssertions ) { lazyPrint(); Colour colour( Colour::ResultError ); - stream << "\nNo assertions in section, '" << _sectionStats.sectionInfo.name << "'\n" << std::endl; + if( currentSectionInfo->parent ) + stream << "\nNo assertions in section"; + else + stream << "\nNo assertions in test case"; + stream << " '" << _sectionStats.sectionInfo.name << "'\n" << std::endl; } m_headerPrinted = false; StreamingReporterBase::sectionEnded( _sectionStats ); @@ -262,6 +266,7 @@ namespace Catch { } void printTestCaseAndSectionHeader() { printOpenHeader( unusedTestCaseInfo->name ); + assert( currentSectionInfo ); if( currentSectionInfo ) { Colour colourGuard( Colour::Headers ); std::vector sections; diff --git a/projects/SelfTest/Baselines/approvedResults.txt b/projects/SelfTest/Baselines/approvedResults.txt index ba3315d9..a1b3bd99 100644 --- a/projects/SelfTest/Baselines/approvedResults.txt +++ b/projects/SelfTest/Baselines/approvedResults.txt @@ -1,6 +1,6 @@ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -CatchSelfTest is a Catch v1.0 b5 host application. +CatchSelfTest is a Catch v1.0 b6 host application. Run with -? for options ------------------------------------------------------------------------------- @@ -712,7 +712,7 @@ with expansion: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -CatchSelfTest is a Catch v1.0 b5 host application. +CatchSelfTest is a Catch v1.0 b6 host application. Run with -? for options ------------------------------------------------------------------------------- @@ -1824,7 +1824,7 @@ ExceptionTests.cpp ............................................................................... -No assertions in test case, './succeeding/exceptions/implicit' +No assertions in test case './succeeding/exceptions/implicit' ------------------------------------------------------------------------------- ./failing/exceptions/custom @@ -3209,14 +3209,8 @@ warning: this is a message this is a warning -------------------------------------------------------------------------------- -./succeeding/message -------------------------------------------------------------------------------- -MessageTests.cpp -............................................................................... - -No assertions in test case, './succeeding/message' +No assertions in test case './succeeding/message' ------------------------------------------------------------------------------- ./succeeding/succeed @@ -3320,7 +3314,7 @@ MessageTests.cpp ............................................................................... -No assertions in section, 'one' +No assertions in section 'one' Message from section two ------------------------------------------------------------------------------- @@ -3331,7 +3325,7 @@ MessageTests.cpp ............................................................................... -No assertions in section, 'two' +No assertions in section 'two' ------------------------------------------------------------------------------- ./mixed/message/scoped @@ -3447,14 +3441,8 @@ MessageTests.cpp: FAILED - but was ok: CHECK_NOFAIL( 1 == 2 ) -------------------------------------------------------------------------------- -./succeeding/nofail -------------------------------------------------------------------------------- -MessageTests.cpp -............................................................................... - -No assertions in test case, './succeeding/nofail' +No assertions in test case './succeeding/nofail' ------------------------------------------------------------------------------- just info @@ -3463,7 +3451,7 @@ MessageTests.cpp ............................................................................... -No assertions in test case, 'just info' +No assertions in test case 'just info' ------------------------------------------------------------------------------- just failure @@ -3609,7 +3597,7 @@ MiscTests.cpp ............................................................................... -No assertions in section, 'd (leaf)' +No assertions in section 'd (leaf)' ------------------------------------------------------------------------------- ./Sections/nested/a/b @@ -3620,7 +3608,7 @@ MiscTests.cpp ............................................................................... -No assertions in section, 'e (leaf)' +No assertions in section 'e (leaf)' ------------------------------------------------------------------------------- ./Sections/nested/a/b @@ -3630,7 +3618,7 @@ MiscTests.cpp ............................................................................... -No assertions in section, 'f (leaf)' +No assertions in section 'f (leaf)' ------------------------------------------------------------------------------- ./mixed/Misc/Sections/loops @@ -3717,7 +3705,7 @@ MiscTests.cpp ............................................................................... -No assertions in test case, './succeeding/Misc/stdout,stderr' +No assertions in test case './succeeding/Misc/stdout,stderr' ------------------------------------------------------------------------------- ./succeeding/Misc/null strings @@ -3825,7 +3813,7 @@ MiscTests.cpp ............................................................................... -No assertions in section, 'embedded xml' +No assertions in section 'embedded xml' ------------------------------------------------------------------------------- ./misc/xmlentitycheck @@ -3835,7 +3823,7 @@ MiscTests.cpp ............................................................................... -No assertions in section, 'encoded chars' +No assertions in section 'encoded chars' ------------------------------------------------------------------------------- ./manual/onechar @@ -4035,7 +4023,7 @@ MiscTests.cpp ............................................................................... -No assertions in test case, 'empty' +No assertions in test case 'empty' ------------------------------------------------------------------------------- Nice descriptive name @@ -4047,14 +4035,8 @@ MiscTests.cpp: warning: This one ran -------------------------------------------------------------------------------- -Nice descriptive name -------------------------------------------------------------------------------- -MiscTests.cpp -............................................................................... - -No assertions in test case, 'Nice descriptive name' +No assertions in test case 'Nice descriptive name' ------------------------------------------------------------------------------- first tag @@ -4063,7 +4045,7 @@ MiscTests.cpp ............................................................................... -No assertions in test case, 'first tag' +No assertions in test case 'first tag' ------------------------------------------------------------------------------- second tag @@ -4072,7 +4054,7 @@ MiscTests.cpp ............................................................................... -No assertions in test case, 'second tag' +No assertions in test case 'second tag' ------------------------------------------------------------------------------- vectors can be sized and resized @@ -6002,7 +5984,7 @@ TestMain.cpp ............................................................................... -No assertions in test case, 'Strings can be rendered with colour' +No assertions in test case 'Strings can be rendered with colour' ------------------------------------------------------------------------------- Text can be formatted using the Text class @@ -6049,14 +6031,8 @@ warning: Uncomment the code in this test to check that it gives a sensible compiler error -------------------------------------------------------------------------------- -./inprogress/failing/Tricky/trailing expression -------------------------------------------------------------------------------- -TrickyTests.cpp -............................................................................... - -No assertions in test case, './inprogress/failing/Tricky/trailing expression' +No assertions in test case './inprogress/failing/Tricky/trailing expression' ------------------------------------------------------------------------------- ./inprogress/failing/Tricky/compound lhs @@ -6069,14 +6045,8 @@ warning: Uncomment the code in this test to check that it gives a sensible compiler error -------------------------------------------------------------------------------- -./inprogress/failing/Tricky/compound lhs -------------------------------------------------------------------------------- -TrickyTests.cpp -............................................................................... - -No assertions in test case, './inprogress/failing/Tricky/compound lhs' +No assertions in test case './inprogress/failing/Tricky/compound lhs' ------------------------------------------------------------------------------- ./failing/Tricky/non streamable type @@ -14103,2777 +14073,3 @@ there" -[Started testing: CatchSelfTest] -[Started group: '~dummy'] - -[Running: ./succeeding/Approx/simple] - -[Started section: './succeeding/Approx/simple'] -ApproxTests.cpp: d == Approx( 1.23 ) succeeded for: 1.23 == Approx( 1.23 ) -ApproxTests.cpp: d != Approx( 1.22 ) succeeded for: 1.23 != Approx( 1.22 ) -ApproxTests.cpp: d != Approx( 1.24 ) succeeded for: 1.23 != Approx( 1.24 ) -ApproxTests.cpp: Approx( d ) == 1.23 succeeded for: Approx( 1.23 ) == 1.23 -ApproxTests.cpp: Approx( d ) != 1.22 succeeded for: Approx( 1.23 ) != 1.22 -ApproxTests.cpp: Approx( d ) != 1.24 succeeded for: Approx( 1.23 ) != 1.24 -[End of section: './succeeding/Approx/simple' 0 assertions passed] - -[Finished: './succeeding/Approx/simple' All tests passed (6 assertions in 1 test case)] - -[Running: ./succeeding/Approx/epsilon] -[Started section: './succeeding/Approx/epsilon'] -ApproxTests.cpp: d != Approx( 1.231 ) succeeded for: 1.23 != Approx( 1.231 ) -ApproxTests.cpp: d == Approx( 1.231 ).epsilon( 0.1 ) succeeded for: 1.23 == Approx( 1.231 ) -[End of section: './succeeding/Approx/epsilon' 0 assertions passed] - -[Finished: './succeeding/Approx/epsilon' All tests passed (2 assertions in 1 test case)] - -[Running: ./succeeding/Approx/float] -[Started section: './succeeding/Approx/float'] -ApproxTests.cpp: 1.23f == Approx( 1.23f ) succeeded for: 1.23 == Approx( 1.23 ) -ApproxTests.cpp: 0.0f == Approx( 0.0f ) succeeded for: 0 == Approx( 0 ) -[End of section: './succeeding/Approx/float' 0 assertions passed] - -[Finished: './succeeding/Approx/float' All tests passed (2 assertions in 1 test case)] - -[Running: ./succeeding/Approx/int] -[Started section: './succeeding/Approx/int'] -ApproxTests.cpp: 1 == Approx( 1 ) succeeded -ApproxTests.cpp: 0 == Approx( 0 ) succeeded -[End of section: './succeeding/Approx/int' 0 assertions passed] - -[Finished: './succeeding/Approx/int' All tests passed (2 assertions in 1 test case)] - -[Running: ./succeeding/Approx/mixed] -[Started section: './succeeding/Approx/mixed'] -ApproxTests.cpp: 1.0f == Approx( 1 ) succeeded for: 1 == Approx( 1 ) -ApproxTests.cpp: 0 == Approx( dZero) succeeded for: 0 == Approx( 0 ) -ApproxTests.cpp: 0 == Approx( dSmall ).epsilon( 0.001 ) succeeded for: 0 == Approx( 1e-05 ) -ApproxTests.cpp: 1.234f == Approx( dMedium ) succeeded for: 1.234 == Approx( 1.234 ) -ApproxTests.cpp: dMedium == Approx( 1.234f ) succeeded for: 1.234 == Approx( 1.234 ) -[End of section: './succeeding/Approx/mixed' 0 assertions passed] - -[Finished: './succeeding/Approx/mixed' All tests passed (5 assertions in 1 test case)] - -[Running: ./succeeding/Approx/custom] -[Started section: './succeeding/Approx/custom'] -ApproxTests.cpp: d == approx( 1.23 ) succeeded for: 1.23 == Approx( 1.23 ) -ApproxTests.cpp: d == approx( 1.22 ) succeeded for: 1.23 == Approx( 1.22 ) -ApproxTests.cpp: d == approx( 1.24 ) succeeded for: 1.23 == Approx( 1.24 ) -ApproxTests.cpp: d != approx( 1.25 ) succeeded for: 1.23 != Approx( 1.25 ) -ApproxTests.cpp: approx( d ) == 1.23 succeeded for: Approx( 1.23 ) == 1.23 -ApproxTests.cpp: approx( d ) == 1.22 succeeded for: Approx( 1.23 ) == 1.22 -ApproxTests.cpp: approx( d ) == 1.24 succeeded for: Approx( 1.23 ) == 1.24 -ApproxTests.cpp: approx( d ) != 1.25 succeeded for: Approx( 1.23 ) != 1.25 -[End of section: './succeeding/Approx/custom' 0 assertions passed] - -[Finished: './succeeding/Approx/custom' All tests passed (8 assertions in 1 test case)] - -[Running: Approximate PI] -[Started section: 'Approximate PI'] -ApproxTests.cpp: divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) succeeded for: 3.142857142857143 == Approx( 3.141 ) -ApproxTests.cpp: divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) succeeded for: 3.142857142857143 != Approx( 3.141 ) -[End of section: 'Approximate PI' 0 assertions passed] - -[Finished: 'Approximate PI' All tests passed (2 assertions in 1 test case)] - -[Running: ./succeeding/TestClass/succeedingCase] -[Started section: './succeeding/TestClass/succeedingCase'] -ClassTests.cpp: s == "hello" succeeded for: "hello" == "hello" -[End of section: './succeeding/TestClass/succeedingCase' 0 assertions passed] - -[Finished: './succeeding/TestClass/succeedingCase' All tests passed (1 assertion in 1 test case)] - -[Running: ./failing/TestClass/failingCase] -[Started section: './failing/TestClass/failingCase'] -ClassTests.cpp: s == "world" failed for: "hello" == "world" -[End of section: './failing/TestClass/failingCase' 0 assertions passed] - -[Finished: './failing/TestClass/failingCase' 1 test case failed (1 assertion failed)] - -[Running: ./succeeding/Fixture/succeedingCase] -[Started section: './succeeding/Fixture/succeedingCase'] -ClassTests.cpp: m_a == 1 succeeded for: 1 == 1 -[End of section: './succeeding/Fixture/succeedingCase' 0 assertions passed] - -[Finished: './succeeding/Fixture/succeedingCase' All tests passed (1 assertion in 1 test case)] - -[Running: ./failing/Fixture/failingCase] -[Started section: './failing/Fixture/failingCase'] -ClassTests.cpp: m_a == 2 failed for: 1 == 2 -[End of section: './failing/Fixture/failingCase' 0 assertions passed] - -[Finished: './failing/Fixture/failingCase' 1 test case failed (1 assertion failed)] - -[Running: ./succeeding/conditions/equality] -[Started section: './succeeding/conditions/equality'] -ConditionTests.cpp: data.int_seven == 7 succeeded for: 7 == 7 -ConditionTests.cpp: data.float_nine_point_one == Approx( 9.1f ) succeeded for: 9.1 == Approx( 9.1 ) -ConditionTests.cpp: data.double_pi == Approx( 3.1415926535 ) succeeded for: 3.1415926535 == Approx( 3.14159 ) -ConditionTests.cpp: data.str_hello == "hello" succeeded for: "hello" == "hello" -ConditionTests.cpp: "hello" == data.str_hello succeeded for: "hello" == "hello" -ConditionTests.cpp: data.str_hello.size() == 5 succeeded for: 5 == 5 -ConditionTests.cpp: x == Approx( 1.3 ) succeeded for: 1.3 == Approx( 1.3 ) -[End of section: './succeeding/conditions/equality' 0 assertions passed] - -[Finished: './succeeding/conditions/equality' All tests passed (7 assertions in 1 test case)] - -[Running: ./failing/conditions/equality] -[Started section: './failing/conditions/equality'] -ConditionTests.cpp: data.int_seven == 6 failed for: 7 == 6 -ConditionTests.cpp: data.int_seven == 8 failed for: 7 == 8 -ConditionTests.cpp: data.int_seven == 0 failed for: 7 == 0 -ConditionTests.cpp: data.float_nine_point_one == Approx( 9.11f ) failed for: 9.1 == Approx( 9.11 ) -ConditionTests.cpp: data.float_nine_point_one == Approx( 9.0f ) failed for: 9.1 == Approx( 9 ) -ConditionTests.cpp: data.float_nine_point_one == Approx( 1 ) failed for: 9.1 == Approx( 1 ) -ConditionTests.cpp: data.float_nine_point_one == Approx( 0 ) failed for: 9.1 == Approx( 0 ) -ConditionTests.cpp: data.double_pi == Approx( 3.1415 ) failed for: 3.1415926535 == Approx( 3.1415 ) -ConditionTests.cpp: data.str_hello == "goodbye" failed for: "hello" == "goodbye" -ConditionTests.cpp: data.str_hello == "hell" failed for: "hello" == "hell" -ConditionTests.cpp: data.str_hello == "hello1" failed for: "hello" == "hello1" -ConditionTests.cpp: data.str_hello.size() == 6 failed for: 5 == 6 -ConditionTests.cpp: x == Approx( 1.301 ) failed for: 1.3 == Approx( 1.301 ) -[End of section: './failing/conditions/equality' 0 assertions passed] - -[Finished: './failing/conditions/equality' 1 test case failed (All 13 assertions failed)] - -[Running: ./succeeding/conditions/inequality] -[Started section: './succeeding/conditions/inequality'] -ConditionTests.cpp: data.int_seven != 6 succeeded for: 7 != 6 -ConditionTests.cpp: data.int_seven != 8 succeeded for: 7 != 8 -ConditionTests.cpp: data.float_nine_point_one != Approx( 9.11f ) succeeded for: 9.1 != Approx( 9.11 ) -ConditionTests.cpp: data.float_nine_point_one != Approx( 9.0f ) succeeded for: 9.1 != Approx( 9 ) -ConditionTests.cpp: data.float_nine_point_one != Approx( 1 ) succeeded for: 9.1 != Approx( 1 ) -ConditionTests.cpp: data.float_nine_point_one != Approx( 0 ) succeeded for: 9.1 != Approx( 0 ) -ConditionTests.cpp: data.double_pi != Approx( 3.1415 ) succeeded for: 3.1415926535 != Approx( 3.1415 ) -ConditionTests.cpp: data.str_hello != "goodbye" succeeded for: "hello" != "goodbye" -ConditionTests.cpp: data.str_hello != "hell" succeeded for: "hello" != "hell" -ConditionTests.cpp: data.str_hello != "hello1" succeeded for: "hello" != "hello1" -ConditionTests.cpp: data.str_hello.size() != 6 succeeded for: 5 != 6 -[End of section: './succeeding/conditions/inequality' 0 assertions passed] - -[Finished: './succeeding/conditions/inequality' All tests passed (11 assertions in 1 test case)] - -[Running: ./failing/conditions/inequality] -[Started section: './failing/conditions/inequality'] -ConditionTests.cpp: data.int_seven != 7 failed for: 7 != 7 -ConditionTests.cpp: data.float_nine_point_one != Approx( 9.1f ) failed for: 9.1 != Approx( 9.1 ) -ConditionTests.cpp: data.double_pi != Approx( 3.1415926535 ) failed for: 3.1415926535 != Approx( 3.14159 ) -ConditionTests.cpp: data.str_hello != "hello" failed for: "hello" != "hello" -ConditionTests.cpp: data.str_hello.size() != 5 failed for: 5 != 5 -[End of section: './failing/conditions/inequality' 0 assertions passed] - -[Finished: './failing/conditions/inequality' 1 test case failed (All 5 assertions failed)] - -[Running: ./succeeding/conditions/ordered] -[Started section: './succeeding/conditions/ordered'] -ConditionTests.cpp: data.int_seven < 8 succeeded for: 7 < 8 -ConditionTests.cpp: data.int_seven > 6 succeeded for: 7 > 6 -ConditionTests.cpp: data.int_seven > 0 succeeded for: 7 > 0 -ConditionTests.cpp: data.int_seven > -1 succeeded for: 7 > -1 -ConditionTests.cpp: data.int_seven >= 7 succeeded for: 7 >= 7 -ConditionTests.cpp: data.int_seven >= 6 succeeded for: 7 >= 6 -ConditionTests.cpp: data.int_seven <= 7 succeeded for: 7 <= 7 -ConditionTests.cpp: data.int_seven <= 8 succeeded for: 7 <= 8 -ConditionTests.cpp: data.float_nine_point_one > 9 succeeded for: 9.1 > 9 -ConditionTests.cpp: data.float_nine_point_one < 10 succeeded for: 9.1 < 10 -ConditionTests.cpp: data.float_nine_point_one < 9.2 succeeded for: 9.1 < 9.199999999999999 -ConditionTests.cpp: data.str_hello <= "hello" succeeded for: "hello" <= "hello" -ConditionTests.cpp: data.str_hello >= "hello" succeeded for: "hello" >= "hello" -ConditionTests.cpp: data.str_hello < "hellp" succeeded for: "hello" < "hellp" -ConditionTests.cpp: data.str_hello < "zebra" succeeded for: "hello" < "zebra" -ConditionTests.cpp: data.str_hello > "hellm" succeeded for: "hello" > "hellm" -ConditionTests.cpp: data.str_hello > "a" succeeded for: "hello" > "a" -[End of section: './succeeding/conditions/ordered' 0 assertions passed] - -[Finished: './succeeding/conditions/ordered' All tests passed (17 assertions in 1 test case)] - -[Running: ./failing/conditions/ordered] -[Started section: './failing/conditions/ordered'] -ConditionTests.cpp: data.int_seven > 7 failed for: 7 > 7 -ConditionTests.cpp: data.int_seven < 7 failed for: 7 < 7 -ConditionTests.cpp: data.int_seven > 8 failed for: 7 > 8 -ConditionTests.cpp: data.int_seven < 6 failed for: 7 < 6 -ConditionTests.cpp: data.int_seven < 0 failed for: 7 < 0 -ConditionTests.cpp: data.int_seven < -1 failed for: 7 < -1 -ConditionTests.cpp: data.int_seven >= 8 failed for: 7 >= 8 -ConditionTests.cpp: data.int_seven <= 6 failed for: 7 <= 6 -ConditionTests.cpp: data.float_nine_point_one < 9 failed for: 9.1 < 9 -ConditionTests.cpp: data.float_nine_point_one > 10 failed for: 9.1 > 10 -ConditionTests.cpp: data.float_nine_point_one > 9.2 failed for: 9.1 > 9.199999999999999 -ConditionTests.cpp: data.str_hello > "hello" failed for: "hello" > "hello" -ConditionTests.cpp: data.str_hello < "hello" failed for: "hello" < "hello" -ConditionTests.cpp: data.str_hello > "hellp" failed for: "hello" > "hellp" -ConditionTests.cpp: data.str_hello > "z" failed for: "hello" > "z" -ConditionTests.cpp: data.str_hello < "hellm" failed for: "hello" < "hellm" -ConditionTests.cpp: data.str_hello < "a" failed for: "hello" < "a" -ConditionTests.cpp: data.str_hello >= "z" failed for: "hello" >= "z" -ConditionTests.cpp: data.str_hello <= "a" failed for: "hello" <= "a" -[End of section: './failing/conditions/ordered' 0 assertions passed] - -[Finished: './failing/conditions/ordered' 1 test case failed (All 19 assertions failed)] - -[Running: ./succeeding/conditions/int literals] -[Started section: './succeeding/conditions/int literals'] -ConditionTests.cpp: i == 1 succeeded for: 1 == 1 -ConditionTests.cpp: ui == 2 succeeded for: 2 == 2 -ConditionTests.cpp: l == 3 succeeded for: 3 == 3 -ConditionTests.cpp: ul == 4 succeeded for: 4 == 4 -ConditionTests.cpp: c == 5 succeeded for: 5 == 5 -ConditionTests.cpp: uc == 6 succeeded for: 6 == 6 -ConditionTests.cpp: 1 == i succeeded for: 1 == 1 -ConditionTests.cpp: 2 == ui succeeded for: 2 == 2 -ConditionTests.cpp: 3 == l succeeded for: 3 == 3 -ConditionTests.cpp: 4 == ul succeeded for: 4 == 4 -ConditionTests.cpp: 5 == c succeeded for: 5 == 5 -ConditionTests.cpp: 6 == uc succeeded for: 6 == 6 -ConditionTests.cpp: (std::numeric_limits::max)() > ul succeeded for: 0x > 4 -[End of section: './succeeding/conditions/int literals' 0 assertions passed] - -[Finished: './succeeding/conditions/int literals' All tests passed (13 assertions in 1 test case)] - -[Running: ./succeeding/conditions//long_to_unsigned_x] -[Started section: './succeeding/conditions//long_to_unsigned_x'] -ConditionTests.cpp: long_var == unsigned_char_var succeeded for: 1 == 1 -ConditionTests.cpp: long_var == unsigned_short_var succeeded for: 1 == 1 -ConditionTests.cpp: long_var == unsigned_int_var succeeded for: 1 == 1 -ConditionTests.cpp: long_var == unsigned_long_var succeeded for: 1 == 1 -[End of section: './succeeding/conditions//long_to_unsigned_x' 0 assertions passed] - -[Finished: './succeeding/conditions//long_to_unsigned_x' All tests passed (4 assertions in 1 test case)] - -[Running: ./succeeding/conditions/const ints to int literal] -[Started section: './succeeding/conditions/const ints to int literal'] -ConditionTests.cpp: unsigned_char_var == 1 succeeded for: 1 == 1 -ConditionTests.cpp: unsigned_short_var == 1 succeeded for: 1 == 1 -ConditionTests.cpp: unsigned_int_var == 1 succeeded for: 1 == 1 -ConditionTests.cpp: unsigned_long_var == 1 succeeded for: 1 == 1 -[End of section: './succeeding/conditions/const ints to int literal' 0 assertions passed] - -[Finished: './succeeding/conditions/const ints to int literal' All tests passed (4 assertions in 1 test case)] - -[Running: ./succeeding/conditions/negative ints] -[Started section: './succeeding/conditions/negative ints'] -ConditionTests.cpp: ( -1 > 2u ) succeeded for: true -ConditionTests.cpp: -1 > 2u succeeded for: -1 > 2 -ConditionTests.cpp: ( 2u < -1 ) succeeded for: true -ConditionTests.cpp: 2u < -1 succeeded for: 2 < -1 -ConditionTests.cpp: ( minInt > 2u ) succeeded for: true -ConditionTests.cpp: minInt > 2u succeeded for: -2147483648 > 2 -[End of section: './succeeding/conditions/negative ints' 0 assertions passed] - -[Finished: './succeeding/conditions/negative ints' All tests passed (6 assertions in 1 test case)] - -[Running: ./succeeding/conditions/computed ints] -[Started section: './succeeding/conditions/computed ints'] -ConditionTests.cpp: 54 == 6*9 succeeded for: 54 == 54 -[End of section: './succeeding/conditions/computed ints' 0 assertions passed] - -[Finished: './succeeding/conditions/computed ints' All tests passed (1 assertion in 1 test case)] - -[Running: ./succeeding/conditions/ptr] -[Started section: './succeeding/conditions/ptr'] -ConditionTests.cpp: p == __null succeeded for: __null == 0 -ConditionTests.cpp: p == pNULL succeeded for: __null == __null -ConditionTests.cpp: p != __null succeeded for: 0x != 0 -ConditionTests.cpp: cp != __null succeeded for: 0x != 0 -ConditionTests.cpp: cpc != __null succeeded for: 0x != 0 -ConditionTests.cpp: returnsNull() == __null succeeded for: {null string} == 0 -ConditionTests.cpp: returnsConstNull() == __null succeeded for: {null string} == 0 -ConditionTests.cpp: __null != p succeeded for: 0 != 0x -[End of section: './succeeding/conditions/ptr' 0 assertions passed] - -[Finished: './succeeding/conditions/ptr' All tests passed (8 assertions in 1 test case)] - -[Running: ./succeeding/conditions/not] -[Started section: './succeeding/conditions/not'] -ConditionTests.cpp: false == false succeeded -ConditionTests.cpp: true == true succeeded -ConditionTests.cpp: !false succeeded for: true -ConditionTests.cpp: !false succeeded -ConditionTests.cpp: !falseValue succeeded for: true -ConditionTests.cpp: !falseValue succeeded for: !false -ConditionTests.cpp: !(1 == 2) succeeded for: true -ConditionTests.cpp: !1 == 2 succeeded for: !(1 == 2) -[End of section: './succeeding/conditions/not' 0 assertions passed] - -[Finished: './succeeding/conditions/not' All tests passed (8 assertions in 1 test case)] - -[Running: ./failing/conditions/not] -[Started section: './failing/conditions/not'] -ConditionTests.cpp: false != false failed -ConditionTests.cpp: true != true failed -ConditionTests.cpp: !true failed for: false -ConditionTests.cpp: !true failed -ConditionTests.cpp: !trueValue failed for: false -ConditionTests.cpp: !trueValue failed for: !true -ConditionTests.cpp: !(1 == 1) failed for: false -ConditionTests.cpp: !1 == 1 failed for: !(1 == 1) -[End of section: './failing/conditions/not' 0 assertions passed] - -[Finished: './failing/conditions/not' 1 test case failed (All 8 assertions failed)] - -[Running: ./succeeding/exceptions/explicit] -[Started section: './succeeding/exceptions/explicit'] -ExceptionTests.cpp: thisThrows() succeeded -ExceptionTests.cpp: thisDoesntThrow() succeeded -ExceptionTests.cpp: thisThrows() succeeded -[End of section: './succeeding/exceptions/explicit' 0 assertions passed] - -[Finished: './succeeding/exceptions/explicit' All tests passed (3 assertions in 1 test case)] - -[Running: ./failing/exceptions/explicit] -[Started section: './failing/exceptions/explicit'] -ExceptionTests.cpp: thisThrows() failed with unexpected exception with message: 'expected exception' -ExceptionTests.cpp: thisDoesntThrow() failed because no exception was thrown where one was expected -ExceptionTests.cpp: thisThrows() failed with unexpected exception with message: 'expected exception' -[End of section: './failing/exceptions/explicit' 0 assertions passed] - -[Finished: './failing/exceptions/explicit' 1 test case failed (All 3 assertions failed)] - -[Running: ./failing/exceptions/implicit] -[Started section: './failing/exceptions/implicit'] -ExceptionTests.cpp: Unexpected exception with message: 'unexpected exception' -[End of section: './failing/exceptions/implicit' 0 assertions passed] - -[Finished: './failing/exceptions/implicit' 1 test case failed (1 assertion failed)] - -[Running: ./failing/exceptions/implicit/2] -[Started section: './failing/exceptions/implicit/2'] -ExceptionTests.cpp: 1 == 1 succeeded -ExceptionTests.cpp: {Unknown expression after the reported line} failed with unexpected exception with message: 'unexpected exception' -[End of section: './failing/exceptions/implicit/2' 0 assertions passed] - -[Finished: './failing/exceptions/implicit/2' 1 test case failed (1 of 2 assertions failed)] - -[Running: ./failing/exceptions/implicit/3] -[Started section: './failing/exceptions/implicit/3'] -[Started section: 'section name'] -ExceptionTests.cpp: Unexpected exception with message: 'unexpected exception' -[End of section: 'section name' 1 assertion failed] - -[End of section: './failing/exceptions/implicit/3' 0 assertions passed] - -[Finished: './failing/exceptions/implicit/3' 1 test case failed (1 assertion failed)] - -[Running: ./failing/exceptions/implicit/4] -[Started section: './failing/exceptions/implicit/4'] -ExceptionTests.cpp: thisThrows() == 0 failed with unexpected exception with message: 'expected exception' -[End of section: './failing/exceptions/implicit/4' 0 assertions passed] - -[Finished: './failing/exceptions/implicit/4' 1 test case failed (1 assertion failed)] - -[Running: ./succeeding/exceptions/implicit] - -No assertions in test case, './succeeding/exceptions/implicit' - -[Finished: './succeeding/exceptions/implicit' 1 test case failed (1 assertion failed)] - -[Running: ./failing/exceptions/custom] -[Started section: './failing/exceptions/custom'] -ExceptionTests.cpp: Unexpected exception with message: 'custom exception' -[End of section: './failing/exceptions/custom' 0 assertions passed] - -[Finished: './failing/exceptions/custom' 1 test case failed (1 assertion failed)] - -[Running: ./failing/exceptions/custom/nothrow] -[Started section: './failing/exceptions/custom/nothrow'] -ExceptionTests.cpp: throwCustom() failed with unexpected exception with message: 'custom exception - not std' -[End of section: './failing/exceptions/custom/nothrow' 0 assertions passed] - -[Finished: './failing/exceptions/custom/nothrow' 1 test case failed (1 assertion failed)] - -[Running: ./failing/exceptions/custom/throw] -[Started section: './failing/exceptions/custom/throw'] -ExceptionTests.cpp: throwCustom() failed with unexpected exception with message: 'custom exception - not std' -[End of section: './failing/exceptions/custom/throw' 0 assertions passed] - -[Finished: './failing/exceptions/custom/throw' 1 test case failed (1 assertion failed)] - -[Running: ./failing/exceptions/custom/double] -[Started section: './failing/exceptions/custom/double'] -ExceptionTests.cpp: Unexpected exception with message: '3.14' -[End of section: './failing/exceptions/custom/double' 0 assertions passed] - -[Finished: './failing/exceptions/custom/double' 1 test case failed (1 assertion failed)] - -[Running: ./succeeding/exceptions/notimplemented] -[Started section: './succeeding/exceptions/notimplemented'] -ExceptionTests.cpp: thisFunctionNotImplemented( 7 ) succeeded -[End of section: './succeeding/exceptions/notimplemented' 0 assertions passed] - -[Finished: './succeeding/exceptions/notimplemented' All tests passed (1 assertion in 1 test case)] - -[Running: ./succeeding/generators/1] -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 2 == 2 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 200 == 200 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 4 == 4 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 200 == 200 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 6 == 6 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 200 == 200 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 8 == 8 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 200 == 200 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 10 == 10 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 200 == 200 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 30 == 30 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 200 == 200 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 40 == 40 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 200 == 200 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 42 == 42 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 200 == 200 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 72 == 72 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 200 == 200 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 2 == 2 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 202 == 202 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 4 == 4 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 202 == 202 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 6 == 6 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 202 == 202 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 8 == 8 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 202 == 202 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 10 == 10 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 202 == 202 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 30 == 30 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 202 == 202 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 40 == 40 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 202 == 202 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 42 == 42 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 202 == 202 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 72 == 72 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 202 == 202 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 2 == 2 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 204 == 204 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 4 == 4 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 204 == 204 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 6 == 6 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 204 == 204 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 8 == 8 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 204 == 204 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 10 == 10 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 204 == 204 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 30 == 30 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 204 == 204 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 40 == 40 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 204 == 204 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 42 == 42 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 204 == 204 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 72 == 72 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 204 == 204 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 2 == 2 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 206 == 206 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 4 == 4 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 206 == 206 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 6 == 6 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 206 == 206 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 8 == 8 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 206 == 206 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 10 == 10 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 206 == 206 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 30 == 30 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 206 == 206 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 40 == 40 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 206 == 206 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 42 == 42 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 206 == 206 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 72 == 72 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 206 == 206 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 2 == 2 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 208 == 208 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 4 == 4 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 208 == 208 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 6 == 6 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 208 == 208 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 8 == 8 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 208 == 208 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 10 == 10 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 208 == 208 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 30 == 30 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 208 == 208 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 40 == 40 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 208 == 208 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 42 == 42 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 208 == 208 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 72 == 72 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 208 == 208 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 2 == 2 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 210 == 210 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 4 == 4 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 210 == 210 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 6 == 6 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 210 == 210 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 8 == 8 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 210 == 210 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 10 == 10 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 210 == 210 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 30 == 30 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 210 == 210 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 40 == 40 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 210 == 210 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 42 == 42 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 210 == 210 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 72 == 72 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 210 == 210 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 2 == 2 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 212 == 212 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 4 == 4 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 212 == 212 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 6 == 6 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 212 == 212 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 8 == 8 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 212 == 212 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 10 == 10 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 212 == 212 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 30 == 30 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 212 == 212 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 40 == 40 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 212 == 212 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 42 == 42 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 212 == 212 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 72 == 72 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 212 == 212 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 2 == 2 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 214 == 214 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 4 == 4 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 214 == 214 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 6 == 6 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 214 == 214 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 8 == 8 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 214 == 214 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 10 == 10 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 214 == 214 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 30 == 30 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 214 == 214 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 40 == 40 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 214 == 214 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 42 == 42 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 214 == 214 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Started section: './succeeding/generators/1'] -GeneratorTests.cpp: multiply( i, 2 ) == i*2 succeeded for: 72 == 72 -GeneratorTests.cpp: multiply( j, 2 ) == j*2 succeeded for: 214 == 214 -[End of section: './succeeding/generators/1' 0 assertions passed] - -[Finished: './succeeding/generators/1' All tests passed (144 assertions in 1 test case)] - -[Running: ./succeeding/generators/2] -[Started section: './succeeding/generators/2'] -GeneratorTests.cpp: i->first == i->second-1 succeeded for: 0 == 0 -[End of section: './succeeding/generators/2' 0 assertions passed] - -[Started section: './succeeding/generators/2'] -GeneratorTests.cpp: i->first == i->second-1 succeeded for: 2 == 2 -[End of section: './succeeding/generators/2' 0 assertions passed] - -[Finished: './succeeding/generators/2' All tests passed (2 assertions in 1 test case)] - -[Running: ./succeeding/message] -[Started section: './succeeding/message'] -MessageTests.cpp: [info: this is a message] -MessageTests.cpp: [warning: this is a warning] -[End of section: './succeeding/message' 0 assertions passed] - - -No assertions in test case, './succeeding/message' - -[Finished: './succeeding/message' 1 test case failed (1 assertion failed)] - -[Running: ./succeeding/succeed] -[Started section: './succeeding/succeed'] -MessageTests.cpp: succeeded -[with message: this is a success] -[End of section: './succeeding/succeed' 0 assertions passed] - -[Finished: './succeeding/succeed' All tests passed (1 assertion in 1 test case)] - -[Running: ./failing/message/info/1] -[Started section: './failing/message/info/1'] -MessageTests.cpp: [info: this message should be logged] -MessageTests.cpp: [info: so should this] -MessageTests.cpp: a == 1 failed for: 2 == 1 -[End of section: './failing/message/info/1' 0 assertions passed] - -[Finished: './failing/message/info/1' 1 test case failed (1 assertion failed)] - -[Running: ./mixed/message/info/2] -[Started section: './mixed/message/info/2'] -MessageTests.cpp: a == 2 succeeded for: 2 == 2 -MessageTests.cpp: [info: this message should be logged] -MessageTests.cpp: a == 1 failed for: 2 == 1 -MessageTests.cpp: [info: and this, but later] -MessageTests.cpp: a == 0 failed for: 2 == 0 -MessageTests.cpp: a == 2 succeeded for: 2 == 2 -[End of section: './mixed/message/info/2' 0 assertions passed] - -[Finished: './mixed/message/info/2' 1 test case failed (2 of 4 assertions failed)] - -[Running: ./failing/message/fail] -[Started section: './failing/message/fail'] -MessageTests.cpp: failed with message: 'This is a failure' -[End of section: './failing/message/fail' 0 assertions passed] - -[Finished: './failing/message/fail' 1 test case failed (1 assertion failed)] - -[Running: ./failing/message/sections] -[Started section: './failing/message/sections'] -[Started section: 'one'] -MessageTests.cpp: failed with message: 'Message from section one' -[End of section: 'one' 1 assertion failed] - -[End of section: './failing/message/sections' 0 assertions passed] - -[Started section: './failing/message/sections'] -[Started section: 'two'] -MessageTests.cpp: failed with message: 'Message from section two' -[End of section: 'two' 1 assertion failed] - -[End of section: './failing/message/sections' 0 assertions passed] - -[Finished: './failing/message/sections' 1 test case failed (All 2 assertions failed)] -Message from section one - -[Running: ./succeeding/message/sections/stdout] -[Started section: './succeeding/message/sections/stdout'] -[Started section: 'one'] - -No assertions in section, 'one' - -[End of section: 'one' 1 assertion failed] - -[End of section: './succeeding/message/sections/stdout' 0 assertions passed] - -Message from section two -[Started section: './succeeding/message/sections/stdout'] -[Started section: 'two'] - -No assertions in section, 'two' - -[End of section: 'two' 1 assertion failed] - -[End of section: './succeeding/message/sections/stdout' 0 assertions passed] - -[Finished: './succeeding/message/sections/stdout' 1 test case failed (All 2 assertions failed)] - -[Running: ./mixed/message/scoped] -[Started section: './mixed/message/scoped'] -MessageTests.cpp: i < 10 succeeded for: 0 < 10 -MessageTests.cpp: i < 10 succeeded for: 1 < 10 -MessageTests.cpp: i < 10 succeeded for: 2 < 10 -MessageTests.cpp: i < 10 succeeded for: 3 < 10 -MessageTests.cpp: i < 10 succeeded for: 4 < 10 -MessageTests.cpp: i < 10 succeeded for: 5 < 10 -MessageTests.cpp: i < 10 succeeded for: 6 < 10 -MessageTests.cpp: i < 10 succeeded for: 7 < 10 -MessageTests.cpp: i < 10 succeeded for: 8 < 10 -MessageTests.cpp: i < 10 succeeded for: 9 < 10 -MessageTests.cpp: [info: current counter 10] -MessageTests.cpp: [info: i := 10] -MessageTests.cpp: i < 10 failed for: 10 < 10 -[End of section: './mixed/message/scoped' 0 assertions passed] - -[Finished: './mixed/message/scoped' 1 test case failed (1 of 11 assertions failed)] - -[Running: ./succeeding/nofail] -[Started section: './succeeding/nofail'] -MessageTests.cpp: 1 == 2 failed - but was ok -[End of section: './succeeding/nofail' 0 assertions passed] - - -No assertions in test case, './succeeding/nofail' - -[Finished: './succeeding/nofail' 1 test case failed (1 assertion failed)] - -[Running: just info] - -No assertions in test case, 'just info' - -[Finished: 'just info' 1 test case failed (1 assertion failed)] - -[Running: just failure] -[Started section: 'just failure'] -MessageTests.cpp: failed with message: 'Previous info should not be seen' -[End of section: 'just failure' 0 assertions passed] - -[Finished: 'just failure' 1 test case failed (1 assertion failed)] - -[Running: ./succeeding/Misc/Sections] -[Started section: './succeeding/Misc/Sections'] -[Started section: 's1'] -MiscTests.cpp: a != b succeeded for: 1 != 2 -MiscTests.cpp: b != a succeeded for: 2 != 1 -[End of section: 's1' All 2 assertions passed] - -[End of section: './succeeding/Misc/Sections' 0 assertions passed] - -[Started section: './succeeding/Misc/Sections'] -[Started section: 's2'] -MiscTests.cpp: a != b succeeded for: 1 != 2 -[End of section: 's2' 1 assertion passed] - -[End of section: './succeeding/Misc/Sections' 0 assertions passed] - -[Finished: './succeeding/Misc/Sections' All tests passed (3 assertions in 1 test case)] - -[Running: ./succeeding/Misc/Sections/nested] -[Started section: './succeeding/Misc/Sections/nested'] -[Started section: 's1'] -MiscTests.cpp: a != b succeeded for: 1 != 2 -MiscTests.cpp: b != a succeeded for: 2 != 1 -[End of section: 's1' All 2 assertions passed] - -[End of section: './succeeding/Misc/Sections/nested' 0 assertions passed] - -[Started section: './succeeding/Misc/Sections/nested'] -[Started section: 's1'] -MiscTests.cpp: a != b succeeded for: 1 != 2 -MiscTests.cpp: b != a succeeded for: 2 != 1 -[Started section: 's2'] -MiscTests.cpp: a != b succeeded for: 1 != 2 -[End of section: 's2' 1 assertion passed] - -[End of section: 's1' All 3 assertions passed] - -[End of section: './succeeding/Misc/Sections/nested' 0 assertions passed] - -[Finished: './succeeding/Misc/Sections/nested' All tests passed (5 assertions in 1 test case)] - -[Running: ./mixed/Misc/Sections/nested2] -[Started section: './mixed/Misc/Sections/nested2'] -[Started section: 's1'] -[Started section: 's2'] -MiscTests.cpp: a == b failed for: 1 == 2 -[End of section: 's2' 1 assertion failed] - -[End of section: 's1' 1 assertion failed] - -[End of section: './mixed/Misc/Sections/nested2' 0 assertions passed] - -[Started section: './mixed/Misc/Sections/nested2'] -[Started section: 's1'] -[Started section: 's3'] -MiscTests.cpp: a != b succeeded for: 1 != 2 -[End of section: 's3' 1 assertion passed] - -[End of section: 's1' 1 assertion passed] - -[End of section: './mixed/Misc/Sections/nested2' 0 assertions passed] - -[Started section: './mixed/Misc/Sections/nested2'] -[Started section: 's1'] -[Started section: 's4'] -MiscTests.cpp: a < b succeeded for: 1 < 2 -[End of section: 's4' 1 assertion passed] - -[End of section: 's1' 1 assertion passed] - -[End of section: './mixed/Misc/Sections/nested2' 0 assertions passed] - -[Finished: './mixed/Misc/Sections/nested2' 1 test case failed (1 of 3 assertions failed)] - -[Running: ./Sections/nested/a/b] -[Started section: './Sections/nested/a/b'] -[Started section: 'c'] -[Started section: 'd (leaf)'] - -No assertions in section, 'd (leaf)' - -[End of section: 'd (leaf)' 1 assertion failed] - -[End of section: 'c' 1 assertion failed] - -[End of section: './Sections/nested/a/b' 0 assertions passed] - -[Started section: './Sections/nested/a/b'] -[Started section: 'c'] -[Started section: 'e (leaf)'] - -No assertions in section, 'e (leaf)' - -[End of section: 'e (leaf)' 1 assertion failed] - -[End of section: 'c' 1 assertion failed] - -[End of section: './Sections/nested/a/b' 0 assertions passed] - -[Started section: './Sections/nested/a/b'] -[Started section: 'f (leaf)'] - -No assertions in section, 'f (leaf)' - -[End of section: 'f (leaf)' 1 assertion failed] - -[End of section: './Sections/nested/a/b' 0 assertions passed] - -[Finished: './Sections/nested/a/b' 1 test case failed (All 3 assertions failed)] - -[Running: ./mixed/Misc/Sections/loops] -[Started section: './mixed/Misc/Sections/loops'] -[Started section: 's1'] -MiscTests.cpp: b > a failed for: 0 > 1 -[End of section: 's1' 1 assertion failed] - -[End of section: './mixed/Misc/Sections/loops' 0 assertions passed] - -[Finished: './mixed/Misc/Sections/loops' 1 test case failed (1 assertion failed)] - -[Running: ./mixed/Misc/loops] -[Started section: './mixed/Misc/loops'] -MiscTests.cpp: [info: Testing if fib[0] (1) is even] -MiscTests.cpp: ( fib[i] % 2 ) == 0 failed for: 1 == 0 -MiscTests.cpp: [info: Testing if fib[1] (1) is even] -MiscTests.cpp: ( fib[i] % 2 ) == 0 failed for: 1 == 0 -MiscTests.cpp: ( fib[i] % 2 ) == 0 succeeded for: 0 == 0 -MiscTests.cpp: [info: Testing if fib[3] (3) is even] -MiscTests.cpp: ( fib[i] % 2 ) == 0 failed for: 1 == 0 -MiscTests.cpp: [info: Testing if fib[4] (5) is even] -MiscTests.cpp: ( fib[i] % 2 ) == 0 failed for: 1 == 0 -MiscTests.cpp: ( fib[i] % 2 ) == 0 succeeded for: 0 == 0 -MiscTests.cpp: [info: Testing if fib[6] (13) is even] -MiscTests.cpp: ( fib[i] % 2 ) == 0 failed for: 1 == 0 -MiscTests.cpp: [info: Testing if fib[7] (21) is even] -MiscTests.cpp: ( fib[i] % 2 ) == 0 failed for: 1 == 0 -[End of section: './mixed/Misc/loops' 0 assertions passed] - -[Finished: './mixed/Misc/loops' 1 test case failed (6 of 8 assertions failed)] -Some information -An error - -[Running: ./succeeding/Misc/stdout,stderr] - -No assertions in test case, './succeeding/Misc/stdout,stderr' - -[Finished: './succeeding/Misc/stdout,stderr' 1 test case failed (1 assertion failed)] - -[Running: ./succeeding/Misc/null strings] -[Started section: './succeeding/Misc/null strings'] -MiscTests.cpp: makeString( false ) != static_cast(__null) succeeded for: "valid string" != {null string} -MiscTests.cpp: makeString( true ) == static_cast(__null) succeeded for: {null string} == {null string} -[End of section: './succeeding/Misc/null strings' 0 assertions passed] - -[Finished: './succeeding/Misc/null strings' All tests passed (2 assertions in 1 test case)] - -[Running: ./failing/info] -[Started section: './failing/info'] -MiscTests.cpp: [info: hi] -MiscTests.cpp: [info: i := 7] -MiscTests.cpp: false failed -[End of section: './failing/info' 0 assertions passed] - -[Finished: './failing/info' 1 test case failed (1 assertion failed)] - -[Running: ./succeeding/checkedif] -[Started section: './succeeding/checkedif'] -MiscTests.cpp: flag succeeded for: true -MiscTests.cpp: testCheckedIf( true ) succeeded for: true -[End of section: './succeeding/checkedif' 0 assertions passed] - -[Finished: './succeeding/checkedif' All tests passed (2 assertions in 1 test case)] - -[Running: ./failing/checkedif] -[Started section: './failing/checkedif'] -MiscTests.cpp: flag failed for: false -MiscTests.cpp: testCheckedIf( false ) failed for: false -[End of section: './failing/checkedif' 0 assertions passed] - -[Finished: './failing/checkedif' 1 test case failed (All 2 assertions failed)] - -[Running: ./succeeding/checkedelse] -[Started section: './succeeding/checkedelse'] -MiscTests.cpp: flag succeeded for: true -MiscTests.cpp: testCheckedElse( true ) succeeded for: true -[End of section: './succeeding/checkedelse' 0 assertions passed] - -[Finished: './succeeding/checkedelse' All tests passed (2 assertions in 1 test case)] - -[Running: ./failing/checkedelse] -[Started section: './failing/checkedelse'] -MiscTests.cpp: flag failed for: false -MiscTests.cpp: testCheckedElse( false ) failed for: false -[End of section: './failing/checkedelse' 0 assertions passed] - -[Finished: './failing/checkedelse' 1 test case failed (All 2 assertions failed)] - -[Running: ./misc/xmlentitycheck] -[Started section: './misc/xmlentitycheck'] -[Started section: 'embedded xml'] - -No assertions in section, 'embedded xml' - -[End of section: 'embedded xml' 1 assertion failed] - -[End of section: './misc/xmlentitycheck' 0 assertions passed] - -[Started section: './misc/xmlentitycheck'] -[Started section: 'encoded chars'] - -No assertions in section, 'encoded chars' - -[End of section: 'encoded chars' 1 assertion failed] - -[End of section: './misc/xmlentitycheck' 0 assertions passed] - -[Finished: './misc/xmlentitycheck' 1 test case failed (All 2 assertions failed)] - -[Running: ./manual/onechar] -[Started section: './manual/onechar'] -MiscTests.cpp: [info: 3] -MiscTests.cpp: false failed -[End of section: './manual/onechar' 0 assertions passed] - -[Finished: './manual/onechar' 1 test case failed (1 assertion failed)] - -[Running: ./succeeding/atomic if] -[Started section: './succeeding/atomic if'] -MiscTests.cpp: x == 0 succeeded for: 0 == 0 -[End of section: './succeeding/atomic if' 0 assertions passed] - -[Finished: './succeeding/atomic if' All tests passed (1 assertion in 1 test case)] - -[Running: ./succeeding/matchers] -[Started section: './succeeding/matchers'] -MiscTests.cpp: testStringForMatching() Contains( "string" ) succeeded for: - "this string contains 'abc' as a substring" contains: "string" -MiscTests.cpp: testStringForMatching() Contains( "abc" ) succeeded for: - "this string contains 'abc' as a substring" contains: "abc" -MiscTests.cpp: testStringForMatching() StartsWith( "this" ) succeeded for: - "this string contains 'abc' as a substring" starts with: "this" -MiscTests.cpp: testStringForMatching() EndsWith( "substring" ) succeeded for: - "this string contains 'abc' as a substring" ends with: "substring" -[End of section: './succeeding/matchers' 0 assertions passed] - -[Finished: './succeeding/matchers' All tests passed (4 assertions in 1 test case)] - -[Running: ./failing/matchers/Contains] -[Started section: './failing/matchers/Contains'] -MiscTests.cpp: testStringForMatching() Contains( "not there" ) failed for: - "this string contains 'abc' as a substring" contains: "not there" -[End of section: './failing/matchers/Contains' 0 assertions passed] - -[Finished: './failing/matchers/Contains' 1 test case failed (1 assertion failed)] - -[Running: ./failing/matchers/StartsWith] -[Started section: './failing/matchers/StartsWith'] -MiscTests.cpp: testStringForMatching() StartsWith( "string" ) failed for: - "this string contains 'abc' as a substring" starts with: "string" -[End of section: './failing/matchers/StartsWith' 0 assertions passed] - -[Finished: './failing/matchers/StartsWith' 1 test case failed (1 assertion failed)] - -[Running: ./failing/matchers/EndsWith] -[Started section: './failing/matchers/EndsWith'] -MiscTests.cpp: testStringForMatching() EndsWith( "this" ) failed for: - "this string contains 'abc' as a substring" ends with: "this" -[End of section: './failing/matchers/EndsWith' 0 assertions passed] - -[Finished: './failing/matchers/EndsWith' 1 test case failed (1 assertion failed)] - -[Running: ./failing/matchers/Equals] -[Started section: './failing/matchers/Equals'] -MiscTests.cpp: testStringForMatching() Equals( "something else" ) failed for: - "this string contains 'abc' as a substring" equals: "something else" -[End of section: './failing/matchers/Equals' 0 assertions passed] - -[Finished: './failing/matchers/Equals' 1 test case failed (1 assertion failed)] - -[Running: string] -[Started section: 'string'] -MiscTests.cpp: "" Equals(__null) succeeded for: "" equals: "" -[End of section: 'string' 0 assertions passed] - -[Finished: 'string' All tests passed (1 assertion in 1 test case)] - -[Running: ./succeeding/matchers/AllOf] -[Started section: './succeeding/matchers/AllOf'] -MiscTests.cpp: testStringForMatching() AllOf( Catch::Contains( "string" ), Catch::Contains( "abc" ) ) succeeded for: -"this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" ) -[End of section: './succeeding/matchers/AllOf' 0 assertions passed] - -[Finished: './succeeding/matchers/AllOf' All tests passed (1 assertion in 1 test case)] - -[Running: ./succeeding/matchers/AnyOf] -[Started section: './succeeding/matchers/AnyOf'] -MiscTests.cpp: testStringForMatching() AnyOf( Catch::Contains( "string" ), Catch::Contains( "not there" ) ) succeeded for: -"this string contains 'abc' as a substring" ( contains: "string" or contains: "not there" ) -MiscTests.cpp: testStringForMatching() AnyOf( Catch::Contains( "not there" ), Catch::Contains( "string" ) ) succeeded for: -"this string contains 'abc' as a substring" ( contains: "not there" or contains: "string" ) -[End of section: './succeeding/matchers/AnyOf' 0 assertions passed] - -[Finished: './succeeding/matchers/AnyOf' All tests passed (2 assertions in 1 test case)] - -[Running: ./succeeding/matchers/Equals] -[Started section: './succeeding/matchers/Equals'] -MiscTests.cpp: testStringForMatching() Equals( "this string contains 'abc' as a substring" ) succeeded for: -"this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" -[End of section: './succeeding/matchers/Equals' 0 assertions passed] - -[Finished: './succeeding/matchers/Equals' All tests passed (1 assertion in 1 test case)] - -[Running: Factorials are computed] -[Started section: 'Factorials are computed'] -MiscTests.cpp: Factorial(0) == 1 succeeded for: 1 == 1 -MiscTests.cpp: Factorial(1) == 1 succeeded for: 1 == 1 -MiscTests.cpp: Factorial(2) == 2 succeeded for: 2 == 2 -MiscTests.cpp: Factorial(3) == 6 succeeded for: 6 == 6 -MiscTests.cpp: Factorial(10) == 3628800 succeeded for: 0x == 3628800 -[End of section: 'Factorials are computed' 0 assertions passed] - -[Finished: 'Factorials are computed' All tests passed (5 assertions in 1 test case)] - -[Running: empty] - -No assertions in test case, 'empty' - -[Finished: 'empty' 1 test case failed (1 assertion failed)] - -[Running: Nice descriptive name] -[Started section: 'Nice descriptive name'] -MiscTests.cpp: [warning: This one ran] -[End of section: 'Nice descriptive name' 0 assertions passed] - - -No assertions in test case, 'Nice descriptive name' - -[Finished: 'Nice descriptive name' 1 test case failed (1 assertion failed)] - -[Running: first tag] - -No assertions in test case, 'first tag' - -[Finished: 'first tag' 1 test case failed (1 assertion failed)] - -[Running: second tag] - -No assertions in test case, 'second tag' - -[Finished: 'second tag' 1 test case failed (1 assertion failed)] - -[Running: vectors can be sized and resized] -[Started section: 'vectors can be sized and resized'] -MiscTests.cpp: v.size() == 5 succeeded for: 5 == 5 -MiscTests.cpp: v.capacity() >= 5 succeeded for: 5 >= 5 -[End of section: 'vectors can be sized and resized' 0 assertions passed] - -[Started section: 'vectors can be sized and resized'] -MiscTests.cpp: v.size() == 5 succeeded for: 5 == 5 -MiscTests.cpp: v.capacity() >= 5 succeeded for: 5 >= 5 -[Started section: 'resizing bigger changes size and capacity'] -MiscTests.cpp: v.size() == 10 succeeded for: 10 == 10 -MiscTests.cpp: v.capacity() >= 10 succeeded for: 10 >= 10 -[End of section: 'resizing bigger changes size and capacity' All 2 assertions passed] - -[End of section: 'vectors can be sized and resized' 0 assertions passed] - -[Started section: 'vectors can be sized and resized'] -MiscTests.cpp: v.size() == 5 succeeded for: 5 == 5 -MiscTests.cpp: v.capacity() >= 5 succeeded for: 5 >= 5 -[Started section: 'resizing smaller changes size but not capacity'] -MiscTests.cpp: v.size() == 0 succeeded for: 0 == 0 -MiscTests.cpp: v.capacity() >= 5 succeeded for: 5 >= 5 -[End of section: 'resizing smaller changes size but not capacity' All 2 assertions passed] - -[End of section: 'vectors can be sized and resized' 0 assertions passed] - -[Started section: 'vectors can be sized and resized'] -MiscTests.cpp: v.size() == 5 succeeded for: 5 == 5 -MiscTests.cpp: v.capacity() >= 5 succeeded for: 5 >= 5 -[Started section: 'resizing smaller changes size but not capacity'] -MiscTests.cpp: v.size() == 0 succeeded for: 0 == 0 -MiscTests.cpp: v.capacity() >= 5 succeeded for: 5 >= 5 -[Started section: 'We can use the 'swap trick' to reset the capacity'] -MiscTests.cpp: v.capacity() == 0 succeeded for: 0 == 0 -[End of section: 'We can use the 'swap trick' to reset the capacity' 1 assertion passed] - -[End of section: 'resizing smaller changes size but not capacity' All 3 assertions passed] - -[End of section: 'vectors can be sized and resized' 0 assertions passed] - -[Started section: 'vectors can be sized and resized'] -MiscTests.cpp: v.size() == 5 succeeded for: 5 == 5 -MiscTests.cpp: v.capacity() >= 5 succeeded for: 5 >= 5 -[Started section: 'reserving bigger changes capacity but not size'] -MiscTests.cpp: v.size() == 5 succeeded for: 5 == 5 -MiscTests.cpp: v.capacity() >= 10 succeeded for: 10 >= 10 -[End of section: 'reserving bigger changes capacity but not size' All 2 assertions passed] - -[End of section: 'vectors can be sized and resized' 0 assertions passed] - -[Started section: 'vectors can be sized and resized'] -MiscTests.cpp: v.size() == 5 succeeded for: 5 == 5 -MiscTests.cpp: v.capacity() >= 5 succeeded for: 5 >= 5 -[Started section: 'reserving smaller does not change size or capacity'] -MiscTests.cpp: v.size() == 5 succeeded for: 5 == 5 -MiscTests.cpp: v.capacity() >= 5 succeeded for: 5 >= 5 -[End of section: 'reserving smaller does not change size or capacity' All 2 assertions passed] - -[End of section: 'vectors can be sized and resized' 0 assertions passed] - -[Finished: 'vectors can be sized and resized' All tests passed (23 assertions in 1 test case)] - -[Running: ./failing/CatchSectionInfiniteLoop] -[Started section: './failing/CatchSectionInfiniteLoop'] -MiscTests.cpp: failed with message: 'to infinity and beyond' -[End of section: './failing/CatchSectionInfiniteLoop' 0 assertions passed] - -[Started section: './failing/CatchSectionInfiniteLoop'] -MiscTests.cpp: failed with message: 'to infinity and beyond' -[End of section: './failing/CatchSectionInfiniteLoop' 0 assertions passed] - -[Started section: './failing/CatchSectionInfiniteLoop'] -[Started section: 'Outer'] -[Started section: 'Inner'] -MiscTests.cpp: succeeded -[with message: that's not flying - that's failing in style] -[End of section: 'Inner' 1 assertion passed] - -[End of section: 'Outer' 1 assertion passed] - -MiscTests.cpp: failed with message: 'to infinity and beyond' -[End of section: './failing/CatchSectionInfiniteLoop' 0 assertions passed] - -[Finished: './failing/CatchSectionInfiniteLoop' 1 test case failed (3 of 4 assertions failed)] - -[Running: selftest/main] -[Started section: 'selftest/main'] -[Started section: 'selftest/expected result'] -[Started section: 'selftest/expected result/failing tests'] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests failed, as expected] -[End of section: 'selftest/expected result/failing tests' All 28 assertions passed] - -[End of section: 'selftest/expected result' All 28 assertions passed] - -[End of section: 'selftest/main' 0 assertions passed] - -[Started section: 'selftest/main'] -[Started section: 'selftest/expected result'] -[Started section: 'selftest/expected result/succeeding tests'] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -Message from section one -Message from section two -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -Some information -An error -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -catch_self_test.hpp: succeeded -[with message: Tests passed, as expected] -[End of section: 'selftest/expected result/succeeding tests' All 46 assertions passed] - -[End of section: 'selftest/expected result' All 46 assertions passed] - -[End of section: 'selftest/main' 0 assertions passed] - -Message from section one -Message from section two -Some information -An error -[Started section: 'selftest/main'] -[Started section: 'selftest/test counts'] -[Started section: 'selftest/test counts/succeeding tests'] -TestMain.cpp: totals.assertions.passed == 298 succeeded for: 298 == 298 -TestMain.cpp: totals.assertions.failed == 0 succeeded for: 0 == 0 -[End of section: 'selftest/test counts/succeeding tests' All 2 assertions passed] - -[End of section: 'selftest/test counts' All 2 assertions passed] - -[End of section: 'selftest/main' 0 assertions passed] - -[Started section: 'selftest/main'] -[Started section: 'selftest/test counts'] -[Started section: 'selftest/test counts/failing tests'] -TestMain.cpp: totals.assertions.passed == 2 succeeded for: 2 == 2 -TestMain.cpp: totals.assertions.failed == 77 succeeded for: 77 == 77 -[End of section: 'selftest/test counts/failing tests' All 2 assertions passed] - -[End of section: 'selftest/test counts' All 2 assertions passed] - -[End of section: 'selftest/main' 0 assertions passed] - -[Finished: 'selftest/main' All tests passed (78 assertions in 1 test case)] - -[Running: meta/Misc/Sections] -[Started section: 'meta/Misc/Sections'] -TestMain.cpp: totals.assertions.passed == 2 succeeded for: 2 == 2 -TestMain.cpp: totals.assertions.failed == 1 succeeded for: 1 == 1 -[End of section: 'meta/Misc/Sections' 0 assertions passed] - -[Finished: 'meta/Misc/Sections' All tests passed (2 assertions in 1 test case)] - -[Running: Process can be configured on command line] -[Started section: 'Process can be configured on command line'] -[Started section: 'default - no arguments'] -TestMain.cpp: parseIntoConfig( argv, config ) succeeded -TestMain.cpp: config.shouldDebugBreak == false succeeded for: false == false -TestMain.cpp: config.abortAfter == -1 succeeded for: -1 == -1 -TestMain.cpp: config.noThrow == false succeeded for: false == false -TestMain.cpp: config.reporterName.empty() succeeded for: true -[End of section: 'default - no arguments' All 5 assertions passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Started section: 'Process can be configured on command line'] -[Started section: 'test lists'] -[Started section: '1 test'] -TestMain.cpp: parseIntoConfig( argv, config ) succeeded -TestMain.cpp: cfg.filters().size() == 1 succeeded for: 1 == 1 -TestMain.cpp: cfg.filters()[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false succeeded for: false == false -TestMain.cpp: cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) succeeded for: true -[End of section: '1 test' All 4 assertions passed] - -[End of section: 'test lists' All 4 assertions passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Started section: 'Process can be configured on command line'] -[Started section: 'test lists'] -[Started section: 'Specify one test case exclusion using exclude:'] -TestMain.cpp: parseIntoConfig( argv, config ) succeeded -TestMain.cpp: cfg.filters().size() == 1 succeeded for: 1 == 1 -TestMain.cpp: cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) == false succeeded for: false == false -TestMain.cpp: cfg.filters()[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) succeeded for: true -[End of section: 'Specify one test case exclusion using exclude:' All 4 assertions passed] - -[End of section: 'test lists' All 4 assertions passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Started section: 'Process can be configured on command line'] -[Started section: 'test lists'] -[Started section: 'Specify one test case exclusion using ~'] -TestMain.cpp: parseIntoConfig( argv, config ) succeeded -TestMain.cpp: cfg.filters().size() == 1 succeeded for: 1 == 1 -TestMain.cpp: cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) == false succeeded for: false == false -TestMain.cpp: cfg.filters()[0].shouldInclude( fakeTestCase( "alwaysIncluded" ) ) succeeded for: true -[End of section: 'Specify one test case exclusion using ~' All 4 assertions passed] - -[End of section: 'test lists' All 4 assertions passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Started section: 'Process can be configured on command line'] -[Started section: 'test lists'] -[Started section: 'Specify two test cases using -t'] -TestMain.cpp: parseIntoConfig( argv, config ) succeeded -TestMain.cpp: cfg.filters().size() == 1 succeeded for: 1 == 1 -TestMain.cpp: cfg.filters()[0].shouldInclude( fakeTestCase( "notIncluded" ) ) == false succeeded for: false == false -TestMain.cpp: cfg.filters()[0].shouldInclude( fakeTestCase( "test1" ) ) succeeded for: true -TestMain.cpp: cfg.filters()[0].shouldInclude( fakeTestCase( "test2" ) ) succeeded for: true -[End of section: 'Specify two test cases using -t' All 5 assertions passed] - -[End of section: 'test lists' All 5 assertions passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Started section: 'Process can be configured on command line'] -[Started section: 'reporter'] -[Started section: '-r/console'] -TestMain.cpp: parseIntoConfig( argv, config ) succeeded -TestMain.cpp: config.reporterName == "console" succeeded for: "console" == "console" -[End of section: '-r/console' All 2 assertions passed] - -[End of section: 'reporter' All 2 assertions passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Started section: 'Process can be configured on command line'] -[Started section: 'reporter'] -[Started section: '-r/xml'] -TestMain.cpp: parseIntoConfig( argv, config ) succeeded -TestMain.cpp: config.reporterName == "xml" succeeded for: "xml" == "xml" -[End of section: '-r/xml' All 2 assertions passed] - -[End of section: 'reporter' All 2 assertions passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Started section: 'Process can be configured on command line'] -[Started section: 'reporter'] -[Started section: '--reporter/junit'] -TestMain.cpp: parseIntoConfig( argv, config ) succeeded -TestMain.cpp: config.reporterName == "junit" succeeded for: "junit" == "junit" -[End of section: '--reporter/junit' All 2 assertions passed] - -[End of section: 'reporter' All 2 assertions passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Started section: 'Process can be configured on command line'] -[Started section: 'debugger'] -[Started section: '-b'] -TestMain.cpp: parseIntoConfig( argv, config ) succeeded -TestMain.cpp: config.shouldDebugBreak == true succeeded for: true == true -[End of section: '-b' All 2 assertions passed] - -[End of section: 'debugger' All 2 assertions passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Started section: 'Process can be configured on command line'] -[Started section: 'debugger'] -[Started section: '--break'] -TestMain.cpp: parseIntoConfig( argv, config ) succeeded -TestMain.cpp: config.shouldDebugBreak succeeded for: true -[End of section: '--break' All 2 assertions passed] - -[End of section: 'debugger' All 2 assertions passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Started section: 'Process can be configured on command line'] -[Started section: 'abort'] -[Started section: '-a aborts after first failure'] -TestMain.cpp: parseIntoConfig( argv, config ) succeeded -TestMain.cpp: config.abortAfter == 1 succeeded for: 1 == 1 -[End of section: '-a aborts after first failure' All 2 assertions passed] - -[End of section: 'abort' All 2 assertions passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Started section: 'Process can be configured on command line'] -[Started section: 'abort'] -[Started section: '-x 2 aborts after two failures'] -TestMain.cpp: parseIntoConfig( argv, config ) succeeded -TestMain.cpp: config.abortAfter == 2 succeeded for: 2 == 2 -[End of section: '-x 2 aborts after two failures' All 2 assertions passed] - -[End of section: 'abort' All 2 assertions passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Started section: 'Process can be configured on command line'] -[Started section: 'abort'] -[Started section: '-x must be greater than zero'] -TestMain.cpp: parseIntoConfigAndReturnError( argv, config ) Contains( "greater than zero" ) succeeded for: -"Value after -x or --abortAfter must be greater than zero while parsing: (-x, --abortx )" contains: "greater than zero" -[End of section: '-x must be greater than zero' 1 assertion passed] - -[End of section: 'abort' 1 assertion passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Started section: 'Process can be configured on command line'] -[Started section: 'abort'] -[Started section: '-x must be numeric'] -TestMain.cpp: parseIntoConfigAndReturnError( argv, config ) Contains( "-x" ) succeeded for: -"Unable to convert oops to destination type while parsing: (-x, --abortx )" contains: "-x" -[End of section: '-x must be numeric' 1 assertion passed] - -[End of section: 'abort' 1 assertion passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Started section: 'Process can be configured on command line'] -[Started section: 'nothrow'] -[Started section: '-e'] -TestMain.cpp: parseIntoConfig( argv, config ) succeeded -TestMain.cpp: config.noThrow == true succeeded for: true == true -[End of section: '-e' All 2 assertions passed] - -[End of section: 'nothrow' All 2 assertions passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Started section: 'Process can be configured on command line'] -[Started section: 'nothrow'] -[Started section: '--nothrow'] -TestMain.cpp: parseIntoConfig( argv, config ) succeeded -TestMain.cpp: config.noThrow == true succeeded for: true == true -[End of section: '--nothrow' All 2 assertions passed] - -[End of section: 'nothrow' All 2 assertions passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Started section: 'Process can be configured on command line'] -[Started section: 'output filename'] -[Started section: '-o filename'] -TestMain.cpp: parseIntoConfig( argv, config ) succeeded -TestMain.cpp: config.outputFilename == "filename.ext" succeeded for: "filename.ext" == "filename.ext" -[End of section: '-o filename' All 2 assertions passed] - -[End of section: 'output filename' All 2 assertions passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Started section: 'Process can be configured on command line'] -[Started section: 'output filename'] -[Started section: '--out'] -TestMain.cpp: parseIntoConfig( argv, config ) succeeded -TestMain.cpp: config.outputFilename == "filename.ext" succeeded for: "filename.ext" == "filename.ext" -[End of section: '--out' All 2 assertions passed] - -[End of section: 'output filename' All 2 assertions passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Started section: 'Process can be configured on command line'] -[Started section: 'combinations'] -[Started section: 'Single character flags can be combined'] -TestMain.cpp: parseIntoConfig( argv, config ) succeeded -TestMain.cpp: config.abortAfter == 1 succeeded for: 1 == 1 -TestMain.cpp: config.shouldDebugBreak succeeded for: true -TestMain.cpp: config.noThrow == true succeeded for: true == true -[End of section: 'Single character flags can be combined' All 4 assertions passed] - -[End of section: 'combinations' All 4 assertions passed] - -[End of section: 'Process can be configured on command line' 0 assertions passed] - -[Finished: 'Process can be configured on command line' All tests passed (50 assertions in 1 test case)] - -[Running: selftest/test filter] -[Started section: 'selftest/test filter'] -TestMain.cpp: matchAny.shouldInclude( fakeTestCase( "any" ) ) succeeded for: true -TestMain.cpp: matchNone.shouldInclude( fakeTestCase( "any" ) ) == false succeeded for: false == false -TestMain.cpp: matchHidden.shouldInclude( fakeTestCase( "any" ) ) == false succeeded for: false == false -TestMain.cpp: matchNonHidden.shouldInclude( fakeTestCase( "any" ) ) succeeded for: true -TestMain.cpp: matchHidden.shouldInclude( fakeTestCase( "./any" ) ) succeeded for: true -TestMain.cpp: matchNonHidden.shouldInclude( fakeTestCase( "./any" ) ) == false succeeded for: false == false -[End of section: 'selftest/test filter' 0 assertions passed] - -[Finished: 'selftest/test filter' All tests passed (6 assertions in 1 test case)] - -[Running: selftest/test filters] -[Started section: 'selftest/test filters'] -TestMain.cpp: matchHidden.shouldInclude( fakeTestCase( "./something" ) ) succeeded for: true -TestMain.cpp: filters.shouldInclude( fakeTestCase( "any" ) ) == false succeeded for: false == false -TestMain.cpp: filters.shouldInclude( fakeTestCase( "./something" ) ) succeeded for: true -TestMain.cpp: filters.shouldInclude( fakeTestCase( "./anything" ) ) == false succeeded for: false == false -[End of section: 'selftest/test filters' 0 assertions passed] - -[Finished: 'selftest/test filters' All tests passed (4 assertions in 1 test case)] - -[Running: selftest/filter/prefix wildcard] -[Started section: 'selftest/filter/prefix wildcard'] -TestMain.cpp: matchBadgers.shouldInclude( fakeTestCase( "big badger" ) ) succeeded for: true -TestMain.cpp: matchBadgers.shouldInclude( fakeTestCase( "little badgers" ) ) == false succeeded for: false == false -[End of section: 'selftest/filter/prefix wildcard' 0 assertions passed] - -[Finished: 'selftest/filter/prefix wildcard' All tests passed (2 assertions in 1 test case)] - -[Running: selftest/filter/wildcard at both ends] -[Started section: 'selftest/filter/wildcard at both ends'] -TestMain.cpp: matchBadgers.shouldInclude( fakeTestCase( "big badger" ) ) succeeded for: true -TestMain.cpp: matchBadgers.shouldInclude( fakeTestCase( "little badgers" ) ) succeeded for: true -TestMain.cpp: matchBadgers.shouldInclude( fakeTestCase( "badgers are big" ) ) succeeded for: true -TestMain.cpp: matchBadgers.shouldInclude( fakeTestCase( "hedgehogs" ) ) == false succeeded for: false == false -[End of section: 'selftest/filter/wildcard at both ends' 0 assertions passed] - -[Finished: 'selftest/filter/wildcard at both ends' All tests passed (4 assertions in 1 test case)] - -[Running: selftest/tags] -[Started section: 'selftest/tags'] -[Started section: 'one tag'] -TestMain.cpp: oneTag.getTestCaseInfo().description == "" succeeded for: "" == "" -TestMain.cpp: oneTag.hasTag( "one" ) succeeded for: true -TestMain.cpp: oneTag.getTags().size() == 1 succeeded for: 1 == 1 -TestMain.cpp: oneTag.matchesTags( p1 ) == true succeeded for: true == true -TestMain.cpp: oneTag.matchesTags( p2 ) == true succeeded for: true == true -TestMain.cpp: oneTag.matchesTags( p3 ) == false succeeded for: false == false -TestMain.cpp: oneTag.matchesTags( p4 ) == false succeeded for: false == false -TestMain.cpp: oneTag.matchesTags( p5 ) == false succeeded for: false == false -[End of section: 'one tag' All 8 assertions passed] - -[End of section: 'selftest/tags' 0 assertions passed] - -[Started section: 'selftest/tags'] -[Started section: 'two tags'] -TestMain.cpp: twoTags.getTestCaseInfo().description == "" succeeded for: "" == "" -TestMain.cpp: twoTags.hasTag( "one" ) succeeded for: true -TestMain.cpp: twoTags.hasTag( "two" ) succeeded for: true -TestMain.cpp: twoTags.hasTag( "Two" ) succeeded for: true -TestMain.cpp: twoTags.hasTag( "three" ) == false succeeded for: false == false -TestMain.cpp: twoTags.getTags().size() == 2 succeeded for: 2 == 2 -TestMain.cpp: twoTags.matchesTags( p1 ) == true succeeded for: true == true -TestMain.cpp: twoTags.matchesTags( p2 ) == true succeeded for: true == true -TestMain.cpp: twoTags.matchesTags( p3 ) == true succeeded for: true == true -TestMain.cpp: twoTags.matchesTags( p4 ) == true succeeded for: true == true -TestMain.cpp: twoTags.matchesTags( p5 ) == true succeeded for: true == true -[End of section: 'two tags' All 11 assertions passed] - -[End of section: 'selftest/tags' 0 assertions passed] - -[Started section: 'selftest/tags'] -[Started section: 'one tag with characters either side'] -TestMain.cpp: oneTagWithExtras.getTestCaseInfo().description == "1234" succeeded for: "1234" == "1234" -TestMain.cpp: oneTagWithExtras.hasTag( "one" ) succeeded for: true -TestMain.cpp: oneTagWithExtras.hasTag( "two" ) == false succeeded for: false == false -TestMain.cpp: oneTagWithExtras.getTags().size() == 1 succeeded for: 1 == 1 -[End of section: 'one tag with characters either side' All 4 assertions passed] - -[End of section: 'selftest/tags' 0 assertions passed] - -[Started section: 'selftest/tags'] -[Started section: 'start of a tag, but not closed'] -TestMain.cpp: oneTagOpen.getTestCaseInfo().description == "[one" succeeded for: "[one" == "[one" -TestMain.cpp: oneTagOpen.hasTag( "one" ) == false succeeded for: false == false -TestMain.cpp: oneTagOpen.getTags().size() == 0 succeeded for: 0 == 0 -[End of section: 'start of a tag, but not closed' All 3 assertions passed] - -[End of section: 'selftest/tags' 0 assertions passed] - -[Started section: 'selftest/tags'] -[Started section: 'hidden'] -TestMain.cpp: oneTag.getTestCaseInfo().description == "" succeeded for: "" == "" -TestMain.cpp: oneTag.hasTag( "." ) succeeded for: true -TestMain.cpp: oneTag.isHidden() succeeded for: true -TestMain.cpp: oneTag.matchesTags( "~[.]" ) == false succeeded for: false == false -[End of section: 'hidden' All 4 assertions passed] - -[End of section: 'selftest/tags' 0 assertions passed] - -[Finished: 'selftest/tags' All tests passed (30 assertions in 1 test case)] - -[Running: Long strings can be wrapped] -[Started section: 'Long strings can be wrapped'] -[Started section: 'plain string'] -[Started section: 'No wrapping'] -TestMain.cpp: Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString succeeded for: - "one two three four" -== -"one two three four" -TestMain.cpp: Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString succeeded for: - "one two three four" -== -"one two three four" -[End of section: 'No wrapping' All 2 assertions passed] - -[End of section: 'plain string' All 2 assertions passed] - -[End of section: 'Long strings can be wrapped' 0 assertions passed] - -[Started section: 'Long strings can be wrapped'] -[Started section: 'plain string'] -[Started section: 'Wrapped once'] -TestMain.cpp: Text( testString, TextAttributes().setWidth( 17 ) ).toString() == "one two three\nfour" succeeded for: - "one two three -four" -== -"one two three -four" -TestMain.cpp: Text( testString, TextAttributes().setWidth( 16 ) ).toString() == "one two three\nfour" succeeded for: - "one two three -four" -== -"one two three -four" -TestMain.cpp: Text( testString, TextAttributes().setWidth( 14 ) ).toString() == "one two three\nfour" succeeded for: - "one two three -four" -== -"one two three -four" -TestMain.cpp: Text( testString, TextAttributes().setWidth( 13 ) ).toString() == "one two three\nfour" succeeded for: - "one two three -four" -== -"one two three -four" -TestMain.cpp: Text( testString, TextAttributes().setWidth( 12 ) ).toString() == "one two\nthree four" succeeded for: - "one two -three four" -== -"one two -three four" -[End of section: 'Wrapped once' All 5 assertions passed] - -[End of section: 'plain string' All 5 assertions passed] - -[End of section: 'Long strings can be wrapped' 0 assertions passed] - -[Started section: 'Long strings can be wrapped'] -[Started section: 'plain string'] -[Started section: 'Wrapped twice'] -TestMain.cpp: Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" succeeded for: - "one two -three -four" -== -"one two -three -four" -TestMain.cpp: Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" succeeded for: - "one two -three -four" -== -"one two -three -four" -TestMain.cpp: Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" succeeded for: - "one two -three -four" -== -"one two -three -four" -[End of section: 'Wrapped twice' All 3 assertions passed] - -[End of section: 'plain string' All 3 assertions passed] - -[End of section: 'Long strings can be wrapped' 0 assertions passed] - -[Started section: 'Long strings can be wrapped'] -[Started section: 'plain string'] -[Started section: 'Wrapped three times'] -TestMain.cpp: Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" succeeded for: - "one -two -three -four" -== -"one -two -three -four" -TestMain.cpp: Text( testString, TextAttributes().setWidth( 5 ) ).toString() == "one\ntwo\nthree\nfour" succeeded for: - "one -two -three -four" -== -"one -two -three -four" -[End of section: 'Wrapped three times' All 2 assertions passed] - -[End of section: 'plain string' All 2 assertions passed] - -[End of section: 'Long strings can be wrapped' 0 assertions passed] - -[Started section: 'Long strings can be wrapped'] -[Started section: 'plain string'] -[Started section: 'Short wrap'] -TestMain.cpp: Text( "abcdef", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef" succeeded for: "abc- -def" -== -"abc- -def" -TestMain.cpp: Text( "abcdefg", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndefg" succeeded for: "abc- -defg" -== -"abc- -defg" -TestMain.cpp: Text( "abcdefgh", TextAttributes().setWidth( 4 ) ).toString() == "abc-\ndef-\ngh" succeeded for: "abc- -def- -gh" -== -"abc- -def- -gh" -TestMain.cpp: Text( testString, TextAttributes().setWidth( 4 ) ).toString() == "one\ntwo\nthr-\nee\nfour" succeeded for: - "one -two -thr- -ee -four" -== -"one -two -thr- -ee -four" -TestMain.cpp: Text( testString, TextAttributes().setWidth( 3 ) ).toString() == "one\ntwo\nth-\nree\nfo-\nur" succeeded for: - "one -two -th- -ree -fo- -ur" -== -"one -two -th- -ree -fo- -ur" -[End of section: 'Short wrap' All 5 assertions passed] - -[End of section: 'plain string' All 5 assertions passed] - -[End of section: 'Long strings can be wrapped' 0 assertions passed] - -[Started section: 'Long strings can be wrapped'] -[Started section: 'plain string'] -[Started section: 'As container'] -TestMain.cpp: text.size() == 4 succeeded for: 4 == 4 -TestMain.cpp: text[0] == "one" succeeded for: "one" == "one" -TestMain.cpp: text[1] == "two" succeeded for: "two" == "two" -TestMain.cpp: text[2] == "three" succeeded for: "three" == "three" -TestMain.cpp: text[3] == "four" succeeded for: "four" == "four" -[End of section: 'As container' All 5 assertions passed] - -[End of section: 'plain string' All 5 assertions passed] - -[End of section: 'Long strings can be wrapped' 0 assertions passed] - -[Started section: 'Long strings can be wrapped'] -[Started section: 'plain string'] -[Started section: 'Indent first line differently'] -TestMain.cpp: text.toString() == " one two\n three\n four" succeeded for: - " one two - three - four" -== -" one two - three - four" -[End of section: 'Indent first line differently' 1 assertion passed] - -[End of section: 'plain string' 1 assertion passed] - -[End of section: 'Long strings can be wrapped' 0 assertions passed] - -[Started section: 'Long strings can be wrapped'] -[Started section: 'With newlines'] -[Started section: 'No wrapping'] -TestMain.cpp: Text( testString, TextAttributes().setWidth( 80 ) ).toString() == testString succeeded for: - "one two -three four" -== -"one two -three four" -TestMain.cpp: Text( testString, TextAttributes().setWidth( 18 ) ).toString() == testString succeeded for: - "one two -three four" -== -"one two -three four" -TestMain.cpp: Text( testString, TextAttributes().setWidth( 10 ) ).toString() == testString succeeded for: - "one two -three four" -== -"one two -three four" -[End of section: 'No wrapping' All 3 assertions passed] - -[End of section: 'With newlines' All 3 assertions passed] - -[End of section: 'Long strings can be wrapped' 0 assertions passed] - -[Started section: 'Long strings can be wrapped'] -[Started section: 'With newlines'] -[Started section: 'Trailing newline'] -TestMain.cpp: Text( "abcdef\n", TextAttributes().setWidth( 10 ) ).toString() == "abcdef\n" succeeded for: "abcdef -" -== -"abcdef -" -TestMain.cpp: Text( "abcdef", TextAttributes().setWidth( 6 ) ).toString() == "abcdef" succeeded for: "abcdef" == "abcdef" -TestMain.cpp: Text( "abcdef\n", TextAttributes().setWidth( 6 ) ).toString() == "abcdef\n" succeeded for: "abcdef -" -== -"abcdef -" -[End of section: 'Trailing newline' All 3 assertions passed] - -[End of section: 'With newlines' All 3 assertions passed] - -[End of section: 'Long strings can be wrapped' 0 assertions passed] - -[Started section: 'Long strings can be wrapped'] -[Started section: 'With newlines'] -[Started section: 'Wrapped once'] -TestMain.cpp: Text( testString, TextAttributes().setWidth( 9 ) ).toString() == "one two\nthree\nfour" succeeded for: - "one two -three -four" -== -"one two -three -four" -TestMain.cpp: Text( testString, TextAttributes().setWidth( 8 ) ).toString() == "one two\nthree\nfour" succeeded for: - "one two -three -four" -== -"one two -three -four" -TestMain.cpp: Text( testString, TextAttributes().setWidth( 7 ) ).toString() == "one two\nthree\nfour" succeeded for: - "one two -three -four" -== -"one two -three -four" -[End of section: 'Wrapped once' All 3 assertions passed] - -[End of section: 'With newlines' All 3 assertions passed] - -[End of section: 'Long strings can be wrapped' 0 assertions passed] - -[Started section: 'Long strings can be wrapped'] -[Started section: 'With newlines'] -[Started section: 'Wrapped twice'] -TestMain.cpp: Text( testString, TextAttributes().setWidth( 6 ) ).toString() == "one\ntwo\nthree\nfour" succeeded for: - "one -two -three -four" -== -"one -two -three -four" -[End of section: 'Wrapped twice' 1 assertion passed] - -[End of section: 'With newlines' 1 assertion passed] - -[End of section: 'Long strings can be wrapped' 0 assertions passed] - -[Started section: 'Long strings can be wrapped'] -[Started section: 'With tabs'] -TestMain.cpp: Text( testString, TextAttributes().setWidth( 15 ) ).toString() == "one two three\n four\n five\n six" succeeded for: -"one two three - four - five - six" -== -"one two three - four - five - six" -[End of section: 'With tabs' 1 assertion passed] - -[End of section: 'Long strings can be wrapped' 0 assertions passed] - -[Finished: 'Long strings can be wrapped' All tests passed (34 assertions in 1 test case)] -hello -hello - -[Running: Strings can be rendered with colour] - -No assertions in test case, 'Strings can be rendered with colour' - -[Finished: 'Strings can be rendered with colour' 1 test case failed (1 assertion failed)] - -[Running: Text can be formatted using the Text class] -[Started section: 'Text can be formatted using the Text class'] -TestMain.cpp: Text( "hi there" ).toString() == "hi there" succeeded for: "hi there" == "hi there" -TestMain.cpp: Text( "hi there", narrow ).toString() == "hi\nthere" succeeded for: "hi -there" -== -"hi -there" -[End of section: 'Text can be formatted using the Text class' 0 assertions passed] - -[Finished: 'Text can be formatted using the Text class' All tests passed (2 assertions in 1 test case)] - -[Running: ./succeeding/Tricky/std::pair] -[Started section: './succeeding/Tricky/std::pair'] -TrickyTests.cpp: (std::pair( 1, 2 )) == aNicePair succeeded for: std::pair( 1, 2 ) == std::pair( 1, 2 ) -[End of section: './succeeding/Tricky/std::pair' 0 assertions passed] - -[Finished: './succeeding/Tricky/std::pair' All tests passed (1 assertion in 1 test case)] - -[Running: ./inprogress/failing/Tricky/trailing expression] -[Started section: './inprogress/failing/Tricky/trailing expression'] -TrickyTests.cpp: [warning: Uncomment the code in this test to check that it gives a sensible compiler error] -[End of section: './inprogress/failing/Tricky/trailing expression' 0 assertions passed] - - -No assertions in test case, './inprogress/failing/Tricky/trailing expression' - -[Finished: './inprogress/failing/Tricky/trailing expression' 1 test case failed (1 assertion failed)] - -[Running: ./inprogress/failing/Tricky/compound lhs] -[Started section: './inprogress/failing/Tricky/compound lhs'] -TrickyTests.cpp: [warning: Uncomment the code in this test to check that it gives a sensible compiler error] -[End of section: './inprogress/failing/Tricky/compound lhs' 0 assertions passed] - - -No assertions in test case, './inprogress/failing/Tricky/compound lhs' - -[Finished: './inprogress/failing/Tricky/compound lhs' 1 test case failed (1 assertion failed)] - -[Running: ./failing/Tricky/non streamable type] -[Started section: './failing/Tricky/non streamable type'] -TrickyTests.cpp: &o1 == &o2 failed for: 0x == 0x -TrickyTests.cpp: o1 == o2 failed for: {?} == {?} -[End of section: './failing/Tricky/non streamable type' 0 assertions passed] - -[Finished: './failing/Tricky/non streamable type' 1 test case failed (All 2 assertions failed)] - -[Running: ./failing/string literals] -[Started section: './failing/string literals'] -TrickyTests.cpp: std::string( "first" ) == "second" failed for: "first" == "second" -[End of section: './failing/string literals' 0 assertions passed] - -[Finished: './failing/string literals' 1 test case failed (1 assertion failed)] - -[Running: ./succeeding/side-effects] -[Started section: './succeeding/side-effects'] -TrickyTests.cpp: i++ == 7 succeeded for: 7 == 7 -TrickyTests.cpp: i++ == 8 succeeded for: 8 == 8 -[End of section: './succeeding/side-effects' 0 assertions passed] - -[Finished: './succeeding/side-effects' All tests passed (2 assertions in 1 test case)] - -[Running: ./succeeding/koenig] -[Started section: './succeeding/koenig'] -TrickyTests.cpp: 0x == o succeeded for: 0x == {?} -[End of section: './succeeding/koenig' 0 assertions passed] - -[Finished: './succeeding/koenig' All tests passed (1 assertion in 1 test case)] - -[Running: ./succeeding/non-const==] -[Started section: './succeeding/non-const=='] -TrickyTests.cpp: t == 1u succeeded for: {?} == 1 -[End of section: './succeeding/non-const==' 0 assertions passed] - -[Finished: './succeeding/non-const==' All tests passed (1 assertion in 1 test case)] - -[Running: ./succeeding/enum/bits] -[Started section: './succeeding/enum/bits'] -TrickyTests.cpp: 0x == bit30and31 succeeded for: 0x == 3221225472 -[End of section: './succeeding/enum/bits' 0 assertions passed] - -[Finished: './succeeding/enum/bits' All tests passed (1 assertion in 1 test case)] - -[Running: ./succeeding/boolean member] -[Started section: './succeeding/boolean member'] -TrickyTests.cpp: obj.prop != __null succeeded for: 0x != 0 -[End of section: './succeeding/boolean member' 0 assertions passed] - -[Finished: './succeeding/boolean member' All tests passed (1 assertion in 1 test case)] - -[Running: ./succeeding/unimplemented static bool] -[Started section: './succeeding/unimplemented static bool'] -[Started section: 'compare to true'] -TrickyTests.cpp: is_true::value == true succeeded for: true == true -TrickyTests.cpp: true == is_true::value succeeded for: true == true -[End of section: 'compare to true' All 2 assertions passed] - -[End of section: './succeeding/unimplemented static bool' 0 assertions passed] - -[Started section: './succeeding/unimplemented static bool'] -[Started section: 'compare to false'] -TrickyTests.cpp: is_true::value == false succeeded for: false == false -TrickyTests.cpp: false == is_true::value succeeded for: false == false -[End of section: 'compare to false' All 2 assertions passed] - -[End of section: './succeeding/unimplemented static bool' 0 assertions passed] - -[Started section: './succeeding/unimplemented static bool'] -[Started section: 'negation'] -TrickyTests.cpp: !is_true::value succeeded for: true -[End of section: 'negation' 1 assertion passed] - -[End of section: './succeeding/unimplemented static bool' 0 assertions passed] - -[Started section: './succeeding/unimplemented static bool'] -[Started section: 'double negation'] -TrickyTests.cpp: !!is_true::value succeeded for: true -[End of section: 'double negation' 1 assertion passed] - -[End of section: './succeeding/unimplemented static bool' 0 assertions passed] - -[Started section: './succeeding/unimplemented static bool'] -[Started section: 'direct'] -TrickyTests.cpp: is_true::value succeeded for: true -TrickyTests.cpp: !is_true::value succeeded for: !false -[End of section: 'direct' All 2 assertions passed] - -[End of section: './succeeding/unimplemented static bool' 0 assertions passed] - -[Finished: './succeeding/unimplemented static bool' All tests passed (8 assertions in 1 test case)] - -[Running: ./succeeding/SafeBool] -[Started section: './succeeding/SafeBool'] -TrickyTests.cpp: True succeeded for: true -TrickyTests.cpp: !False succeeded for: true -TrickyTests.cpp: !False succeeded for: !false -[End of section: './succeeding/SafeBool' 0 assertions passed] - -[Finished: './succeeding/SafeBool' All tests passed (3 assertions in 1 test case)] - -[Running: Assertions then sections] -[Started section: 'Assertions then sections'] -TrickyTests.cpp: Catch::isTrue( true ) succeeded for: true -[End of section: 'Assertions then sections' 0 assertions passed] - -[Started section: 'Assertions then sections'] -TrickyTests.cpp: Catch::isTrue( true ) succeeded for: true -[Started section: 'A section'] -TrickyTests.cpp: Catch::isTrue( true ) succeeded for: true -[End of section: 'A section' 1 assertion passed] - -[End of section: 'Assertions then sections' 0 assertions passed] - -[Started section: 'Assertions then sections'] -TrickyTests.cpp: Catch::isTrue( true ) succeeded for: true -[Started section: 'A section'] -TrickyTests.cpp: Catch::isTrue( true ) succeeded for: true -[Started section: 'Another section'] -TrickyTests.cpp: Catch::isTrue( true ) succeeded for: true -[End of section: 'Another section' 1 assertion passed] - -[End of section: 'A section' All 2 assertions passed] - -[End of section: 'Assertions then sections' 0 assertions passed] - -[Started section: 'Assertions then sections'] -TrickyTests.cpp: Catch::isTrue( true ) succeeded for: true -[Started section: 'A section'] -TrickyTests.cpp: Catch::isTrue( true ) succeeded for: true -[Started section: 'Another other section'] -TrickyTests.cpp: Catch::isTrue( true ) succeeded for: true -[End of section: 'Another other section' 1 assertion passed] - -[End of section: 'A section' All 2 assertions passed] - -[End of section: 'Assertions then sections' 0 assertions passed] - -[Finished: 'Assertions then sections' All tests passed (9 assertions in 1 test case)] - -[Running: non streamable - with conv. op] -[Started section: 'non streamable - with conv. op'] -TrickyTests.cpp: s == "7" succeeded for: "7" == "7" -[End of section: 'non streamable - with conv. op' 0 assertions passed] - -[Finished: 'non streamable - with conv. op' All tests passed (1 assertion in 1 test case)] - -[Running: Comparing function pointers] -[Started section: 'Comparing function pointers'] -TrickyTests.cpp: a succeeded for: true -TrickyTests.cpp: a == &foo succeeded for: 1 == 1 -[End of section: 'Comparing function pointers' 0 assertions passed] - -[Finished: 'Comparing function pointers' All tests passed (2 assertions in 1 test case)] - -[Running: pointer to class] -[Started section: 'pointer to class'] -TrickyTests.cpp: p == 0 succeeded for: __null == 0 -[End of section: 'pointer to class' 0 assertions passed] - -[Finished: 'pointer to class' All tests passed (1 assertion in 1 test case)] - -[Running: X/level/0/a] -[Started section: 'X/level/0/a'] -TrickyTests.cpp: succeeded -[End of section: 'X/level/0/a' 0 assertions passed] - -[Finished: 'X/level/0/a' All tests passed (1 assertion in 1 test case)] - -[Running: X/level/0/b] -[Started section: 'X/level/0/b'] -TrickyTests.cpp: succeeded -[End of section: 'X/level/0/b' 0 assertions passed] - -[Finished: 'X/level/0/b' All tests passed (1 assertion in 1 test case)] - -[Running: X/level/1/a] -[Started section: 'X/level/1/a'] -TrickyTests.cpp: succeeded -[End of section: 'X/level/1/a' 0 assertions passed] - -[Finished: 'X/level/1/a' All tests passed (1 assertion in 1 test case)] - -[Running: X/level/1/b] -[Started section: 'X/level/1/b'] -TrickyTests.cpp: succeeded -[End of section: 'X/level/1/b' 0 assertions passed] - -[Finished: 'X/level/1/b' All tests passed (1 assertion in 1 test case)] - -[Running: Anonymous test case 1] -[Started section: 'Anonymous test case 1'] -VariadicMacrosTests.cpp: succeeded -[with message: anonymous test case] -[End of section: 'Anonymous test case 1' 0 assertions passed] - -[Finished: 'Anonymous test case 1' All tests passed (1 assertion in 1 test case)] - -[Running: Test case with one argument] -[Started section: 'Test case with one argument'] -VariadicMacrosTests.cpp: succeeded -[with message: no assertions] -[End of section: 'Test case with one argument' 0 assertions passed] - -[Finished: 'Test case with one argument' All tests passed (1 assertion in 1 test case)] - -[Running: Variadic macros] -[Started section: 'Variadic macros'] -[Started section: 'Section with one argument'] -VariadicMacrosTests.cpp: succeeded -[with message: no assertions] -[End of section: 'Section with one argument' 1 assertion passed] - -[End of section: 'Variadic macros' 0 assertions passed] - -[Finished: 'Variadic macros' All tests passed (1 assertion in 1 test case)] - -[Running: Scenario: Do that thing with the thing] -[Started section: 'Scenario: Do that thing with the thing'] -[Started section: ' Given: This stuff exists'] -[Started section: ' When: I do this'] -[Started section: ' Then: it should do this'] -BDDTests.cpp: itDoesThis() succeeded for: true -[End of section: ' Then: it should do this' 1 assertion passed] - -[End of section: ' When: I do this' 1 assertion passed] - -[End of section: ' Given: This stuff exists' 1 assertion passed] - -[End of section: 'Scenario: Do that thing with the thing' 0 assertions passed] - -[Started section: 'Scenario: Do that thing with the thing'] -[Started section: ' Given: This stuff exists'] -[Started section: ' When: I do this'] -[Started section: ' Then: it should do this'] -BDDTests.cpp: itDoesThis() succeeded for: true -[Started section: ' And: do that'] -BDDTests.cpp: itDoesThat() succeeded for: true -[End of section: ' And: do that' 1 assertion passed] - -[End of section: ' Then: it should do this' All 2 assertions passed] - -[End of section: ' When: I do this' All 2 assertions passed] - -[End of section: ' Given: This stuff exists' All 2 assertions passed] - -[End of section: 'Scenario: Do that thing with the thing' 0 assertions passed] - -[Finished: 'Scenario: Do that thing with the thing' All tests passed (3 assertions in 1 test case)] - -[Running: Scenario: Vector resizing affects size and capacity] -[Started section: 'Scenario: Vector resizing affects size and capacity'] -[Started section: ' Given: an empty vector'] -BDDTests.cpp: v.size() == 0 succeeded for: 0 == 0 -[End of section: ' Given: an empty vector' 1 assertion passed] - -[End of section: 'Scenario: Vector resizing affects size and capacity' 0 assertions passed] - -[Started section: 'Scenario: Vector resizing affects size and capacity'] -[Started section: ' Given: an empty vector'] -BDDTests.cpp: v.size() == 0 succeeded for: 0 == 0 -[End of section: ' Given: an empty vector' 1 assertion passed] - -[End of section: 'Scenario: Vector resizing affects size and capacity' 0 assertions passed] - -[Started section: 'Scenario: Vector resizing affects size and capacity'] -[Started section: ' Given: an empty vector'] -BDDTests.cpp: v.size() == 0 succeeded for: 0 == 0 -[Started section: ' When: it is made larger'] -[Started section: ' Then: the size and capacity go up'] -BDDTests.cpp: v.size() == 10 succeeded for: 10 == 10 -BDDTests.cpp: v.capacity() >= 10 succeeded for: 10 >= 10 -[End of section: ' Then: the size and capacity go up' All 2 assertions passed] - -[End of section: ' When: it is made larger' All 2 assertions passed] - -[End of section: ' Given: an empty vector' All 3 assertions passed] - -[End of section: 'Scenario: Vector resizing affects size and capacity' 0 assertions passed] - -[Started section: 'Scenario: Vector resizing affects size and capacity'] -[Started section: ' Given: an empty vector'] -BDDTests.cpp: v.size() == 0 succeeded for: 0 == 0 -[Started section: ' When: it is made larger'] -[Started section: ' Then: the size and capacity go up'] -BDDTests.cpp: v.size() == 10 succeeded for: 10 == 10 -BDDTests.cpp: v.capacity() >= 10 succeeded for: 10 >= 10 -[End of section: ' Then: the size and capacity go up' All 2 assertions passed] - -[End of section: ' When: it is made larger' All 2 assertions passed] - -[End of section: ' Given: an empty vector' All 3 assertions passed] - -[End of section: 'Scenario: Vector resizing affects size and capacity' 0 assertions passed] - -[Started section: 'Scenario: Vector resizing affects size and capacity'] -[Started section: ' Given: an empty vector'] -BDDTests.cpp: v.size() == 0 succeeded for: 0 == 0 -[Started section: ' When: it is made larger'] -[Started section: ' Then: the size and capacity go up'] -BDDTests.cpp: v.size() == 10 succeeded for: 10 == 10 -BDDTests.cpp: v.capacity() >= 10 succeeded for: 10 >= 10 -[Started section: 'And when: it is made smaller again'] -[Started section: ' Then: the size goes down but the capacity stays the same'] -BDDTests.cpp: v.size() == 5 succeeded for: 5 == 5 -BDDTests.cpp: v.capacity() >= 10 succeeded for: 10 >= 10 -[End of section: ' Then: the size goes down but the capacity stays the same' All 2 assertions passed] - -[End of section: 'And when: it is made smaller again' All 2 assertions passed] - -[End of section: ' Then: the size and capacity go up' All 4 assertions passed] - -[End of section: ' When: it is made larger' All 4 assertions passed] - -[End of section: ' Given: an empty vector' All 5 assertions passed] - -[End of section: 'Scenario: Vector resizing affects size and capacity' 0 assertions passed] - -[Started section: 'Scenario: Vector resizing affects size and capacity'] -[Started section: ' Given: an empty vector'] -BDDTests.cpp: v.size() == 0 succeeded for: 0 == 0 -[End of section: ' Given: an empty vector' 1 assertion passed] - -[End of section: 'Scenario: Vector resizing affects size and capacity' 0 assertions passed] - -[Started section: 'Scenario: Vector resizing affects size and capacity'] -[Started section: ' Given: an empty vector'] -BDDTests.cpp: v.size() == 0 succeeded for: 0 == 0 -[Started section: ' When: we reserve more space'] -[Started section: ' Then: The capacity is increased but the size remains the same'] -BDDTests.cpp: v.capacity() >= 10 succeeded for: 10 >= 10 -BDDTests.cpp: v.size() == 0 succeeded for: 0 == 0 -[End of section: ' Then: The capacity is increased but the size remains the same' All 2 assertions passed] - -[End of section: ' When: we reserve more space' All 2 assertions passed] - -[End of section: ' Given: an empty vector' All 3 assertions passed] - -[End of section: 'Scenario: Vector resizing affects size and capacity' 0 assertions passed] - -[Finished: 'Scenario: Vector resizing affects size and capacity' All tests passed (17 assertions in 1 test case)] - -[Running: Scenario: This is a really long scenario name to see how the list command deals with wrapping] -[Started section: 'Scenario: This is a really long scenario name to see how the list command deals with wrapping'] -[Started section: ' Given: A section name that is so long that it cannot fit in a single console width'] -[Started section: ' When: The test headers are printed as part of the normal running of the scenario'] -[Started section: ' Then: The, deliberately very long and overly verbose (you see what I did there?) section names must wrap, along with an indent'] -BDDTests.cpp: succeeded -[with message: boo!] -[End of section: ' Then: The, deliberately very long and overly verbose (you see what I did there?) section names must wrap, along with an indent' 1 assertion passed] - -[End of section: ' When: The test headers are printed as part of the normal running of the scenario' 1 assertion passed] - -[End of section: ' Given: A section name that is so long that it cannot fit in a single console width' 1 assertion passed] - -[End of section: 'Scenario: This is a really long scenario name to see how the list command deals with wrapping' 0 assertions passed] - -[Finished: 'Scenario: This is a really long scenario name to see how the list command deals with wrapping' All tests passed (1 assertion in 1 test case)] - -[Running: cmdline] -[Started section: 'cmdline'] -[Started section: 'process name'] -CmdLineTests.cpp: config.processName == "test" succeeded for: "test" == "test" -[End of section: 'process name' 1 assertion passed] - -[End of section: 'cmdline' 0 assertions passed] - -[Started section: 'cmdline'] -[Started section: 'arg separated by spaces'] -CmdLineTests.cpp: config.fileName == "filename.ext" succeeded for: "filename.ext" == "filename.ext" -[End of section: 'arg separated by spaces' 1 assertion passed] - -[End of section: 'cmdline' 0 assertions passed] - -[Started section: 'cmdline'] -[Started section: 'arg separated by colon'] -CmdLineTests.cpp: config.fileName == "filename.ext" succeeded for: "filename.ext" == "filename.ext" -[End of section: 'arg separated by colon' 1 assertion passed] - -[End of section: 'cmdline' 0 assertions passed] - -[Started section: 'cmdline'] -[Started section: 'arg separated by ='] -CmdLineTests.cpp: config.fileName == "filename.ext" succeeded for: "filename.ext" == "filename.ext" -[End of section: 'arg separated by =' 1 assertion passed] - -[End of section: 'cmdline' 0 assertions passed] - -[Started section: 'cmdline'] -[Started section: 'long opt'] -CmdLineTests.cpp: config.fileName == "%stdout" succeeded for: "%stdout" == "%stdout" -[End of section: 'long opt' 1 assertion passed] - -[End of section: 'cmdline' 0 assertions passed] - -[Started section: 'cmdline'] -[Started section: 'a number'] -CmdLineTests.cpp: config.number == 42 succeeded for: 42 == 42 -[End of section: 'a number' 1 assertion passed] - -[End of section: 'cmdline' 0 assertions passed] - -[Started section: 'cmdline'] -[Started section: 'not a number'] -CmdLineTests.cpp: parseInto( cli, argv, config ) succeeded -CmdLineTests.cpp: config.number == 0 succeeded for: 0 == 0 -[End of section: 'not a number' All 2 assertions passed] - -[End of section: 'cmdline' 0 assertions passed] - -[Started section: 'cmdline'] -[Started section: 'two parsers'] -CmdLineTests.cpp: config1.number == 42 succeeded for: 42 == 42 -CmdLineTests.cpp: !unusedTokens.empty() succeeded for: !false -CmdLineTests.cpp: config2.description == "some text" succeeded for: "some text" == "some text" -[End of section: 'two parsers' All 3 assertions passed] - -[End of section: 'cmdline' 0 assertions passed] - -[Started section: 'cmdline'] -[Started section: 'methods'] -[Started section: 'in range'] -CmdLineTests.cpp: config.index == 3 succeeded for: 3 == 3 -[End of section: 'in range' 1 assertion passed] - -[End of section: 'methods' 1 assertion passed] - -[End of section: 'cmdline' 0 assertions passed] - -[Started section: 'cmdline'] -[Started section: 'methods'] -[Started section: 'out of range'] -CmdLineTests.cpp: parseInto( cli, argv, config ) succeeded -[End of section: 'out of range' 1 assertion passed] - -[End of section: 'methods' 1 assertion passed] - -[End of section: 'cmdline' 0 assertions passed] - -[Started section: 'cmdline'] -[Started section: 'flags'] -[Started section: 'set'] -CmdLineTests.cpp: config.flag succeeded for: true -[End of section: 'set' 1 assertion passed] - -[End of section: 'flags' 1 assertion passed] - -[End of section: 'cmdline' 0 assertions passed] - -[Started section: 'cmdline'] -[Started section: 'flags'] -[Started section: 'not set'] -CmdLineTests.cpp: config.flag == false succeeded for: false == false -[End of section: 'not set' 1 assertion passed] - -[End of section: 'flags' 1 assertion passed] - -[End of section: 'cmdline' 0 assertions passed] - -[Started section: 'cmdline'] -[Started section: 'positional'] -CmdLineTests.cpp: config.firstPos == "1st" succeeded for: "1st" == "1st" -CmdLineTests.cpp: config.secondPos == "2nd" succeeded for: "2nd" == "2nd" -CmdLineTests.cpp: config.unpositional == "3rd" succeeded for: "3rd" == "3rd" -[End of section: 'positional' All 3 assertions passed] - -[End of section: 'cmdline' 0 assertions passed] - -[Finished: 'cmdline' All tests passed (18 assertions in 1 test case)] - -[Running: section tracking] -[Started section: 'section tracking'] -SectionTrackerTests.cpp: !testCaseTracker.isCompleted() succeeded for: !false -[End of section: 'section tracking' 0 assertions passed] - -[Started section: 'section tracking'] -SectionTrackerTests.cpp: !testCaseTracker.isCompleted() succeeded for: !false -[Started section: 'test case with no sections'] -SectionTrackerTests.cpp: !testCaseTracker.isCompleted() succeeded for: !false -SectionTrackerTests.cpp: testCaseTracker.isCompleted() succeeded for: true -[End of section: 'test case with no sections' All 2 assertions passed] - -[End of section: 'section tracking' 0 assertions passed] - -[Started section: 'section tracking'] -SectionTrackerTests.cpp: !testCaseTracker.isCompleted() succeeded for: !false -[Started section: 'test case with one section'] -SectionTrackerTests.cpp: !testCaseTracker.enterSection( section1Name ) succeeded for: !false -SectionTrackerTests.cpp: !testCaseTracker.isCompleted() succeeded for: !false -SectionTrackerTests.cpp: !testCaseTracker.isCompleted() succeeded for: !false -SectionTrackerTests.cpp: testCaseTracker.enterSection( section1Name ) succeeded for: true -SectionTrackerTests.cpp: testCaseTracker.isCompleted() succeeded for: true -[End of section: 'test case with one section' All 5 assertions passed] - -[End of section: 'section tracking' 0 assertions passed] - -[Started section: 'section tracking'] -SectionTrackerTests.cpp: !testCaseTracker.isCompleted() succeeded for: !false -[Started section: 'test case with two consecutive sections'] -SectionTrackerTests.cpp: !testCaseTracker.enterSection( section1Name ) succeeded for: !false -SectionTrackerTests.cpp: !testCaseTracker.enterSection( section2Name ) succeeded for: !false -SectionTrackerTests.cpp: !testCaseTracker.isCompleted() succeeded for: !false -SectionTrackerTests.cpp: testCaseTracker.enterSection( section1Name ) succeeded for: true -SectionTrackerTests.cpp: !testCaseTracker.enterSection( section2Name ) succeeded for: !false -SectionTrackerTests.cpp: !testCaseTracker.isCompleted() succeeded for: !false -SectionTrackerTests.cpp: !testCaseTracker.enterSection( section1Name ) succeeded for: !false -SectionTrackerTests.cpp: testCaseTracker.enterSection( section2Name ) succeeded for: true -SectionTrackerTests.cpp: testCaseTracker.isCompleted() succeeded for: true -[End of section: 'test case with two consecutive sections' All 9 assertions passed] - -[End of section: 'section tracking' 0 assertions passed] - -[Started section: 'section tracking'] -SectionTrackerTests.cpp: !testCaseTracker.isCompleted() succeeded for: !false -[Started section: 'test case with one section within another'] -SectionTrackerTests.cpp: !testCaseTracker.enterSection( section1Name ) succeeded for: !false -SectionTrackerTests.cpp: !testCaseTracker.isCompleted() succeeded for: !false -SectionTrackerTests.cpp: testCaseTracker.enterSection( section1Name ) succeeded for: true -SectionTrackerTests.cpp: !testCaseTracker.enterSection( section2Name ) succeeded for: !false -SectionTrackerTests.cpp: !testCaseTracker.isCompleted() succeeded for: !false -SectionTrackerTests.cpp: testCaseTracker.enterSection( section1Name ) succeeded for: true -SectionTrackerTests.cpp: testCaseTracker.enterSection( section2Name ) succeeded for: true -SectionTrackerTests.cpp: testCaseTracker.isCompleted() succeeded for: true -[End of section: 'test case with one section within another' All 8 assertions passed] - -[End of section: 'section tracking' 0 assertions passed] - -[Finished: 'section tracking' All tests passed (29 assertions in 1 test case)] -[End of group: '~dummy'. 50 of 121 test cases failed (109 of 756 assertions failed)] - - -[Testing completed. 50 of 121 test cases failed (109 of 756 assertions failed)] - - -[Testing completed. No tests ran] - diff --git a/scripts/approvalTests.py b/scripts/approvalTests.py index 5cdac57d..eb460f1c 100644 --- a/scripts/approvalTests.py +++ b/scripts/approvalTests.py @@ -26,8 +26,6 @@ subprocess.call([ cmdPath, "~dummy", "-s", "-w", "NoAssertions", "-r", "console" subprocess.call([ cmdPath, "~dummy", "-s", "-w", "NoAssertions", "-r", "console", "-a", "4" ], stdout=f, stderr=f ) subprocess.call([ cmdPath, "~dummy", "-s", "-w", "NoAssertions", "-r", "junit" ], stdout=f, stderr=f ) subprocess.call([ cmdPath, "~dummy", "-s", "-w", "NoAssertions", "-r", "xml" ], stdout=f, stderr=f ) -subprocess.call([ cmdPath, "~dummy", "-s", "-w", "NoAssertions", "-r", "basic" ], stdout=f, stderr=f ) -subprocess.call([ cmdPath, "~dummy", "-s", "-w", "NoAssertions", "-r", "basic", "-a", "4" ], stdout=f, stderr=f ) f.close() rawFile = open( rawResultsPath, 'r' )