blob: 4e4cc327e8b58ef3c101961984c6848a5f37b859 [file] [log] [blame]
[doctest] run with "--help" for options
root
1
1.1
root
2
2.1
root
2
===============================================================================
subcases.cpp(0):
TEST CASE: lots of nested subcases
subcases.cpp(0): FATAL ERROR:
===============================================================================
subcases.cpp(0):
TEST CASE: subcases can be used in a separate function as well
from function...
subcases.cpp(0): MESSAGE: print me twice
===============================================================================
subcases.cpp(0):
TEST CASE: subcases can be used in a separate function as well
from function...
sc1
subcases.cpp(0): MESSAGE: hello! from sc1
===============================================================================
subcases.cpp(0):
TEST CASE: subcases can be used in a separate function as well
DEEPEST SUBCASE STACK REACHED (DIFFERENT FROM THE CURRENT ONE):
from function...
sc1
subcases.cpp(0): MESSAGE: lala
===============================================================================
subcases.cpp(0):
TEST CASE: subcases can be used in a separate function as well
from function...
subcases.cpp(0): MESSAGE: print me twice
===============================================================================
subcases.cpp(0):
TEST CASE: subcases can be used in a separate function as well
from function...
sc2
subcases.cpp(0): MESSAGE: hello! from sc2
===============================================================================
subcases.cpp(0):
TEST CASE: subcases can be used in a separate function as well
DEEPEST SUBCASE STACK REACHED (DIFFERENT FROM THE CURRENT ONE):
from function...
sc2
subcases.cpp(0): MESSAGE: lala
===============================================================================
subcases.cpp(0):
Scenario: vectors can be sized and resized
Given: A vector with some items
When: the size is increased
Then: the size and capacity change
subcases.cpp(0): ERROR: CHECK( v.size() == 20 ) is NOT correct!
values: CHECK( 10 == 20 )
===============================================================================
subcases.cpp(0):
Scenario: vectors can be sized and resized
Given: A vector with some items
When: less capacity is reserved
Then: neither size nor capacity are changed
subcases.cpp(0): ERROR: CHECK( v.size() == 10 ) is NOT correct!
values: CHECK( 5 == 10 )
===============================================================================
subcases.cpp(0):
TEST CASE: test case should fail even though the last subcase passes
one
subcases.cpp(0): ERROR: CHECK( false ) is NOT correct!
values: CHECK( false )
===============================================================================
subcases.cpp(0):
TEST CASE: fails from an exception but gets re-entered to traverse all subcases
level zero
one
subcases.cpp(0): ERROR: CHECK( false ) is NOT correct!
values: CHECK( false )
===============================================================================
subcases.cpp(0):
TEST CASE: fails from an exception but gets re-entered to traverse all subcases
level zero
DEEPEST SUBCASE STACK REACHED (DIFFERENT FROM THE CURRENT ONE):
level zero
one
subcases.cpp(0): ERROR: test case THREW exception: exception thrown in subcase - will translate later when the whole test case has been exited (cannot translate while there is an active exception)
===============================================================================
subcases.cpp(0):
TEST CASE: fails from an exception but gets re-entered to traverse all subcases
DEEPEST SUBCASE STACK REACHED (DIFFERENT FROM THE CURRENT ONE):
level zero
one
subcases.cpp(0): ERROR: test case THREW exception: failure... but the show must go on!
===============================================================================
subcases.cpp(0):
TEST CASE: fails from an exception but gets re-entered to traverse all subcases
level zero
two
subcases.cpp(0): ERROR: CHECK( false ) is NOT correct!
values: CHECK( false )
===============================================================================
subcases.cpp(0):
TEST CASE: fails from an exception but gets re-entered to traverse all subcases
level zero
DEEPEST SUBCASE STACK REACHED (DIFFERENT FROM THE CURRENT ONE):
level zero
two
subcases.cpp(0): ERROR: test case THREW exception: exception thrown in subcase - will translate later when the whole test case has been exited (cannot translate while there is an active exception)
===============================================================================
subcases.cpp(0):
TEST CASE: fails from an exception but gets re-entered to traverse all subcases
DEEPEST SUBCASE STACK REACHED (DIFFERENT FROM THE CURRENT ONE):
level zero
two
subcases.cpp(0): ERROR: test case THREW exception: failure... but the show must go on!
===============================================================================
subcases.cpp(0):
TEST CASE: subcases with changing names
outer 0
inner 0
subcases.cpp(0): MESSAGE: msg!
===============================================================================
subcases.cpp(0):
TEST CASE: subcases with changing names
outer 0
inner 1
subcases.cpp(0): MESSAGE: msg!
===============================================================================
subcases.cpp(0):
TEST CASE: subcases with changing names
outer 1
inner 0
subcases.cpp(0): MESSAGE: msg!
===============================================================================
subcases.cpp(0):
TEST CASE: subcases with changing names
outer 1
inner 1
subcases.cpp(0): MESSAGE: msg!
===============================================================================
subcases.cpp(0):
TEST CASE: subcases with changing names
separate
subcases.cpp(0): MESSAGE: separate msg!
===============================================================================
[doctest] test cases: 7 | 3 passed | 4 failed |
[doctest] assertions: 25 | 19 passed | 6 failed |
[doctest] Status: FAILURE!
Program code.