blob: 6e9101da04faa28aa18cc650039ad296b02779ce [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===============================================================================
onqtam1655b242018-05-10 15:29:21 +030014subcases.cpp(0):
onqtam35c14cd2017-04-24 12:54:03 +030015TEST CASE: lots of nested subcases
onqtam27079bc2017-04-16 23:21:13 +030016
onqtam1655b242018-05-10 15:29:21 +030017subcases.cpp(0): FATAL ERROR:
onqtam27079bc2017-04-16 23:21:13 +030018
onqtam35c14cd2017-04-24 12:54:03 +030019===============================================================================
onqtam1655b242018-05-10 15:29:21 +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
onqtam1655b242018-05-10 15:29:21 +030024subcases.cpp(0): MESSAGE: print me twice
onqtam5dbcb1e2017-05-02 23:07:56 +030025
26===============================================================================
onqtam1655b242018-05-10 15:29:21 +030027subcases.cpp(0):
onqtam5dbcb1e2017-05-02 23:07:56 +030028TEST CASE: subcases can be used in a separate function as well
29 from function...
onqtam378d6702017-04-19 11:30:03 +030030 sc1
31
onqtam1655b242018-05-10 15:29:21 +030032subcases.cpp(0): MESSAGE: hello! from sc1
onqtam378d6702017-04-19 11:30:03 +030033
onqtam35c14cd2017-04-24 12:54:03 +030034===============================================================================
onqtam1655b242018-05-10 15:29:21 +030035subcases.cpp(0):
onqtam35c14cd2017-04-24 12:54:03 +030036TEST CASE: subcases can be used in a separate function as well
onqtama82c1e42017-05-07 17:36:41 +030037
onqtam1655b242018-05-10 15:29:21 +030038subcases.cpp(0): MESSAGE: lala
onqtama82c1e42017-05-07 17:36:41 +030039
40===============================================================================
onqtam1655b242018-05-10 15:29:21 +030041subcases.cpp(0):
onqtama82c1e42017-05-07 17:36:41 +030042TEST CASE: subcases can be used in a separate function as well
onqtam5dbcb1e2017-05-02 23:07:56 +030043 from function...
44
onqtam1655b242018-05-10 15:29:21 +030045subcases.cpp(0): MESSAGE: print me twice
onqtam5dbcb1e2017-05-02 23:07:56 +030046
47===============================================================================
onqtam1655b242018-05-10 15:29:21 +030048subcases.cpp(0):
onqtam5dbcb1e2017-05-02 23:07:56 +030049TEST CASE: subcases can be used in a separate function as well
50 from function...
onqtam378d6702017-04-19 11:30:03 +030051 sc2
52
onqtam1655b242018-05-10 15:29:21 +030053subcases.cpp(0): MESSAGE: hello! from sc2
onqtam378d6702017-04-19 11:30:03 +030054
onqtam35c14cd2017-04-24 12:54:03 +030055===============================================================================
onqtam1655b242018-05-10 15:29:21 +030056subcases.cpp(0):
onqtama82c1e42017-05-07 17:36:41 +030057TEST CASE: subcases can be used in a separate function as well
58
onqtam1655b242018-05-10 15:29:21 +030059subcases.cpp(0): MESSAGE: lala
onqtama82c1e42017-05-07 17:36:41 +030060
61===============================================================================
onqtam1655b242018-05-10 15:29:21 +030062subcases.cpp(0):
onqtam2c100d62017-04-16 22:47:28 +030063 Scenario: vectors can be sized and resized
64 Given: A vector with some items
65 When: the size is increased
66 Then: the size and capacity change
67
onqtam1655b242018-05-10 15:29:21 +030068subcases.cpp(0): ERROR: CHECK( v.size() == 20 ) is NOT correct!
69 values: CHECK( 10 == 20 )
onqtam2c100d62017-04-16 22:47:28 +030070
onqtam35c14cd2017-04-24 12:54:03 +030071===============================================================================
onqtam1655b242018-05-10 15:29:21 +030072subcases.cpp(0):
onqtam2c100d62017-04-16 22:47:28 +030073 Scenario: vectors can be sized and resized
74 Given: A vector with some items
75 When: less capacity is reserved
76 Then: neither size nor capacity are changed
77
onqtam1655b242018-05-10 15:29:21 +030078subcases.cpp(0): ERROR: CHECK( v.size() == 10 ) is NOT correct!
79 values: CHECK( 5 == 10 )
onqtam2c100d62017-04-16 22:47:28 +030080
onqtam2c100d62017-04-16 22:47:28 +030081===============================================================================
onqtam68d0f1d2017-05-07 20:45:09 +030082[doctest] test cases: 3 | 1 passed | 2 failed |
83[doctest] assertions: 17 | 14 passed | 3 failed |
onqtam754f4022017-05-06 20:07:49 +030084[doctest] Status: FAILURE!
onqtam2c100d62017-04-16 22:47:28 +030085Program code.