blob: adfffb1a619254ebc4924978a2beb5a3a88c2129 [file] [log] [blame]
onqtam2c100d62017-04-16 22:47:28 +03001[doctest] run with "--help" for options
onqtam27079bc2017-04-16 23:21:13 +03002
3root
41
51.1
6
7root
82
92.1
10
11root
122
13== TEST CASE ==================================================================
14subcases.cpp(0)
15lots of nested subcases
16
onqtam7cc0e962017-04-17 23:30:36 +030017subcases.cpp(0) FATAL ERROR!
onqtam27079bc2017-04-16 23:21:13 +030018
onqtam2c100d62017-04-16 22:47:28 +030019== TEST CASE ==================================================================
20subcases.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
26subcases.cpp(0) ERROR!
27 CHECK( v.size() == 20 )
28with expansion:
29 CHECK( 10 == 20 )
30
31== TEST CASE ==================================================================
32subcases.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
38subcases.cpp(0) ERROR!
39 CHECK( v.size() == 10 )
40with expansion:
41 CHECK( 5 == 10 )
42
onqtam2c100d62017-04-16 22:47:28 +030043===============================================================================
onqtam7cc0e962017-04-17 23:30:36 +030044[doctest] test cases: 2 | 0 passed | 2 failed |
45[doctest] assertions: 16 | 14 passed | 2 failed |
onqtam2c100d62017-04-16 22:47:28 +030046Program code.