blob: 92d4082c95ad4ca2fc8f0f6937a7a0f255a28775 [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
onqtam35c14cd2017-04-24 12:54:03 +030013===============================================================================
onqtam27079bc2017-04-16 23:21:13 +030014subcases.cpp(0)
onqtam35c14cd2017-04-24 12:54:03 +030015TEST CASE: lots of nested subcases
onqtam27079bc2017-04-16 23:21:13 +030016
onqtam7cc0e962017-04-17 23:30:36 +030017subcases.cpp(0) FATAL ERROR!
onqtam27079bc2017-04-16 23:21:13 +030018
onqtam35c14cd2017-04-24 12:54:03 +030019===============================================================================
onqtam2c100d62017-04-16 22:47:28 +030020subcases.cpp(0)
onqtam35c14cd2017-04-24 12:54:03 +030021TEST CASE: subcases can be used in a separate function as well
onqtam5dbcb1e2017-05-02 23:07:56 +030022 from function...
23
24subcases.cpp(0) MESSAGE!
25 print me twice
26
27===============================================================================
28subcases.cpp(0)
29TEST CASE: subcases can be used in a separate function as well
30 from function...
onqtam378d6702017-04-19 11:30:03 +030031 sc1
32
33subcases.cpp(0) MESSAGE!
34 hello! from sc1
35
onqtam35c14cd2017-04-24 12:54:03 +030036===============================================================================
onqtam378d6702017-04-19 11:30:03 +030037subcases.cpp(0)
onqtam35c14cd2017-04-24 12:54:03 +030038TEST CASE: subcases can be used in a separate function as well
onqtam5dbcb1e2017-05-02 23:07:56 +030039 from function...
40
41subcases.cpp(0) MESSAGE!
42 print me twice
43
44===============================================================================
45subcases.cpp(0)
46TEST CASE: subcases can be used in a separate function as well
47 from function...
onqtam378d6702017-04-19 11:30:03 +030048 sc2
49
50subcases.cpp(0) MESSAGE!
51 hello! from sc2
52
onqtam35c14cd2017-04-24 12:54:03 +030053===============================================================================
onqtam378d6702017-04-19 11:30:03 +030054subcases.cpp(0)
onqtam2c100d62017-04-16 22:47:28 +030055 Scenario: vectors can be sized and resized
56 Given: A vector with some items
57 When: the size is increased
58 Then: the size and capacity change
59
60subcases.cpp(0) ERROR!
61 CHECK( v.size() == 20 )
62with expansion:
63 CHECK( 10 == 20 )
64
onqtam35c14cd2017-04-24 12:54:03 +030065===============================================================================
onqtam2c100d62017-04-16 22:47:28 +030066subcases.cpp(0)
67 Scenario: vectors can be sized and resized
68 Given: A vector with some items
69 When: less capacity is reserved
70 Then: neither size nor capacity are changed
71
72subcases.cpp(0) ERROR!
73 CHECK( v.size() == 10 )
74with expansion:
75 CHECK( 5 == 10 )
76
onqtam2c100d62017-04-16 22:47:28 +030077===============================================================================
onqtam378d6702017-04-19 11:30:03 +030078[doctest] test cases: 3 | 1 passed | 2 failed |
onqtam754f4022017-05-06 20:07:49 +030079[doctest] assertions: 17 | 14 passed | 3 failed |
80[doctest] Status: FAILURE!
onqtam2c100d62017-04-16 22:47:28 +030081Program code.