onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 1 | [doctest] run with "--help" for options |
onqtam | 27079bc | 2017-04-16 23:21:13 +0300 | [diff] [blame] | 2 | |
| 3 | root |
| 4 | 1 |
| 5 | 1.1 |
| 6 | |
| 7 | root |
| 8 | 2 |
| 9 | 2.1 |
| 10 | |
| 11 | root |
| 12 | 2 |
| 13 | == TEST CASE ================================================================== |
| 14 | subcases.cpp(0) |
| 15 | lots of nested subcases |
| 16 | |
onqtam | 7cc0e96 | 2017-04-17 23:30:36 +0300 | [diff] [blame^] | 17 | subcases.cpp(0) FATAL ERROR! |
onqtam | 27079bc | 2017-04-16 23:21:13 +0300 | [diff] [blame] | 18 | |
onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 19 | == TEST CASE ================================================================== |
| 20 | subcases.cpp(0) |
| 21 | Scenario: vectors can be sized and resized |
| 22 | Given: A vector with some items |
| 23 | When: the size is increased |
| 24 | Then: the size and capacity change |
| 25 | |
| 26 | subcases.cpp(0) ERROR! |
| 27 | CHECK( v.size() == 20 ) |
| 28 | with expansion: |
| 29 | CHECK( 10 == 20 ) |
| 30 | |
| 31 | == TEST CASE ================================================================== |
| 32 | subcases.cpp(0) |
| 33 | Scenario: vectors can be sized and resized |
| 34 | Given: A vector with some items |
| 35 | When: less capacity is reserved |
| 36 | Then: neither size nor capacity are changed |
| 37 | |
| 38 | subcases.cpp(0) ERROR! |
| 39 | CHECK( v.size() == 10 ) |
| 40 | with expansion: |
| 41 | CHECK( 5 == 10 ) |
| 42 | |
onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 43 | =============================================================================== |
onqtam | 7cc0e96 | 2017-04-17 23:30:36 +0300 | [diff] [blame^] | 44 | [doctest] test cases: 2 | 0 passed | 2 failed | |
| 45 | [doctest] assertions: 16 | 14 passed | 2 failed | |
onqtam | 2c100d6 | 2017-04-16 22:47:28 +0300 | [diff] [blame] | 46 | Program code. |