summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authoronqtam <vik.kirilov@gmail.com>2017-04-02 20:38:22 +0300
committeronqtam <vik.kirilov@gmail.com>2017-05-16 00:22:17 +0300
commitbe91727466dee2bea44b601244d6b79acabdec8f (patch)
tree27f781a2a3dd52595084b1e1d263afb1ebb4dd17 /examples
parentcfce188940c63d3d7aab4eb305b2aed5ba89e7f1 (diff)
- fixed bug that was introduced in commit 0b0b82f1728f65075724b41aca83c62834978d44 - should have made these changes in a separate commit for easier testing
- regenerated test output so the tests pass
Diffstat (limited to 'examples')
-rw-r--r--examples/assertion_macros/test_output/assertion_macros.txt12
-rw-r--r--examples/dll_and_executable/test_output/dll_and_executable.txt2
-rw-r--r--examples/hello_world/test_output/hello_world.txt2
-rw-r--r--examples/multi_file_example/test_output/multi_file_example.txt6
-rw-r--r--examples/removing_doctest_options/test_output/removing_doctest_options.txt2
-rw-r--r--examples/separate_headers/test_output/separate_headers.txt106
-rw-r--r--examples/stringification/test_output/stringification.txt4
-rw-r--r--examples/subcases_and_bdd/test_output/subcases_and_bdd.txt8
8 files changed, 102 insertions, 40 deletions
diff --git a/examples/assertion_macros/test_output/assertion_macros.txt b/examples/assertion_macros/test_output/assertion_macros.txt
index a064e75..81e184a 100644
--- a/examples/assertion_macros/test_output/assertion_macros.txt
+++ b/examples/assertion_macros/test_output/assertion_macros.txt
@@ -1,5 +1,5 @@
[doctest] run with "--help" for options
-===============================================================================
+== TEST CASE ==================================================================
main.cpp(0)
an empty test that will fail because of an exception
@@ -7,7 +7,7 @@ TEST CASE FAILED!
threw exception:
unknown exception
-===============================================================================
+== TEST CASE ==================================================================
main.cpp(0)
an empty test that will fail because of a std::exception
@@ -15,7 +15,7 @@ TEST CASE FAILED!
threw exception:
whops!
-===============================================================================
+== TEST CASE ==================================================================
main.cpp(0)
normal macros
@@ -33,7 +33,7 @@ TEST CASE FAILED!
threw exception:
unknown exception
-===============================================================================
+== TEST CASE ==================================================================
main.cpp(0)
normal macros with std::exception
@@ -51,7 +51,7 @@ TEST CASE FAILED!
threw exception:
unknown exception
-===============================================================================
+== TEST CASE ==================================================================
main.cpp(0)
exceptions-related macros
@@ -73,7 +73,7 @@ main.cpp(0) ERROR!
threw exception:
unknown exception
-===============================================================================
+== TEST CASE ==================================================================
main.cpp(0)
exceptions-related macros for std::exception
diff --git a/examples/dll_and_executable/test_output/dll_and_executable.txt b/examples/dll_and_executable/test_output/dll_and_executable.txt
index 558f24c..f8e9f4d 100644
--- a/examples/dll_and_executable/test_output/dll_and_executable.txt
+++ b/examples/dll_and_executable/test_output/dll_and_executable.txt
@@ -3,7 +3,7 @@ I am a test from the dll!
I am a test from the implementation!
I am a test from the implementation_2!
I am a test from the executable!
-===============================================================================
+== TEST CASE ==================================================================
main.cpp(0)
executable
diff --git a/examples/hello_world/test_output/hello_world.txt b/examples/hello_world/test_output/hello_world.txt
index e713d6a..a63fa43 100644
--- a/examples/hello_world/test_output/hello_world.txt
+++ b/examples/hello_world/test_output/hello_world.txt
@@ -1,5 +1,5 @@
[doctest] run with "--help" for options
-===============================================================================
+== TEST CASE ==================================================================
main.cpp(0)
testing the factorial function
diff --git a/examples/multi_file_example/test_output/multi_file_example.txt b/examples/multi_file_example/test_output/multi_file_example.txt
index 4c10c65..390ddce 100644
--- a/examples/multi_file_example/test_output/multi_file_example.txt
+++ b/examples/multi_file_example/test_output/multi_file_example.txt
@@ -1,5 +1,5 @@
[doctest] run with "--help" for options
-===============================================================================
+== TEST CASE ==================================================================
f1.cpp(0)
f1.cpp
@@ -8,7 +8,7 @@ f1.cpp(0) ERROR!
with expansion:
CHECK( 1 == 0 )
-===============================================================================
+== TEST CASE ==================================================================
f2.cpp(0)
f2.cpp
@@ -17,7 +17,7 @@ f2.cpp(0) ERROR!
with expansion:
CHECK( 1 == 0 )
-===============================================================================
+== TEST CASE ==================================================================
hdr.h(0)
hdr.h
diff --git a/examples/removing_doctest_options/test_output/removing_doctest_options.txt b/examples/removing_doctest_options/test_output/removing_doctest_options.txt
index 6ec7587..9547a75 100644
--- a/examples/removing_doctest_options/test_output/removing_doctest_options.txt
+++ b/examples/removing_doctest_options/test_output/removing_doctest_options.txt
@@ -1,5 +1,5 @@
[doctest] run with "--help" for options
-===============================================================================
+== TEST CASE ==================================================================
main.cpp(0)
Fail
diff --git a/examples/separate_headers/test_output/separate_headers.txt b/examples/separate_headers/test_output/separate_headers.txt
index 60cda4d..05d55d4 100644
--- a/examples/separate_headers/test_output/separate_headers.txt
+++ b/examples/separate_headers/test_output/separate_headers.txt
@@ -1,30 +1,92 @@
[doctest] run with "--help" for options
-Hello world!
-===============================================================================
+== TEST CASE ==================================================================
+test.cpp(0)
+trololo<?>
+
+test.cpp(0) ERROR!
+ CHECK( sizeof(typename T::A) == static_cast<unsigned>(4) )
+with expansion:
+ CHECK( 1 == 4 )
+
+== TEST CASE ==================================================================
test.cpp(0)
-stuff
+trololo<?>
+
+test.cpp(0) ERROR!
+ CHECK( sizeof(typename T::B) == static_cast<unsigned>(4) )
+with expansion:
+ CHECK( 1 == 4 )
+
+== TEST CASE ==================================================================
+test.cpp(0)
+separate<int>
test.cpp(0) MESSAGE!
- lala: 542
-with context:
- 5
+ aaa
-test.cpp(0) WARNING!
- WARN( 1 == throws(true) )
-threw exception:
- unknown exception
-with context:
- 5
- sdf5
+== TEST CASE ==================================================================
+test.cpp(0)
+separate<char>
-test.cpp(0) WARNING!
- WARN_THROWS_AS( throws(true), char )
-threw a different exception:
- unknown exception
-with context:
- 5
- sad
+test.cpp(0) MESSAGE!
+ aaa
+
+== TEST CASE ==================================================================
+test.cpp(0)
+separate<?>
+
+test.cpp(0) MESSAGE!
+ aaa
+
+== TEST CASE ==================================================================
+test.cpp(0)
+separate<double>
+
+test.cpp(0) MESSAGE!
+ aaa
+
+== TEST CASE ==================================================================
+test.cpp(0)
+separate<int>
+
+test.cpp(0) MESSAGE!
+ aaa
+
+== TEST CASE ==================================================================
+test.cpp(0)
+separate<int>
+
+test.cpp(0) MESSAGE!
+ aaa
+
+== TEST CASE ==================================================================
+test.cpp(0)
+separate<char>
+
+test.cpp(0) MESSAGE!
+ aaa
+
+== TEST CASE ==================================================================
+test.cpp(0)
+separate<?>
+
+test.cpp(0) MESSAGE!
+ aaa
+
+== TEST CASE ==================================================================
+test.cpp(0)
+separate<double>
+
+test.cpp(0) MESSAGE!
+ aaa
+
+== TEST CASE ==================================================================
+test.cpp(0)
+separate<int>
+
+test.cpp(0) MESSAGE!
+ aaa
===============================================================================
-[doctest] test cases: 1 | 1 passed | 0 failed | 0 skipped
-[doctest] assertions: 0 | 0 passed | 0 failed |
+[doctest] test cases: 12 | 10 passed | 2 failed | 0 skipped
+[doctest] assertions: 4 | 2 passed | 2 failed |
diff --git a/examples/stringification/test_output/stringification.txt b/examples/stringification/test_output/stringification.txt
index 3c218df..dc7cb1d 100644
--- a/examples/stringification/test_output/stringification.txt
+++ b/examples/stringification/test_output/stringification.txt
@@ -1,5 +1,5 @@
[doctest] run with "--help" for options
-===============================================================================
+== TEST CASE ==================================================================
main.cpp(0)
the only test
@@ -27,7 +27,7 @@ TEST CASE FAILED!
threw exception:
MyTypeInherited<int>(5, 4.0f)
-===============================================================================
+== TEST CASE ==================================================================
main.cpp(0)
a test case that registers an exception translator for int and then throws one
diff --git a/examples/subcases_and_bdd/test_output/subcases_and_bdd.txt b/examples/subcases_and_bdd/test_output/subcases_and_bdd.txt
index c8d6673..c3af1a6 100644
--- a/examples/subcases_and_bdd/test_output/subcases_and_bdd.txt
+++ b/examples/subcases_and_bdd/test_output/subcases_and_bdd.txt
@@ -10,7 +10,7 @@ root
root
2
-===============================================================================
+== TEST CASE ==================================================================
main.cpp(0)
lots of nested subcases
@@ -18,7 +18,7 @@ TEST CASE FAILED!
threw exception:
unknown exception
-===============================================================================
+== TEST CASE ==================================================================
main.cpp(0)
Scenario: vectors can be sized and resized
Given: A vector with some items
@@ -30,7 +30,7 @@ main.cpp(0) ERROR!
with expansion:
CHECK( 10 == 20 )
-===============================================================================
+== TEST CASE ==================================================================
main.cpp(0)
Scenario: vectors can be sized and resized
Given: A vector with some items
@@ -42,7 +42,7 @@ main.cpp(0) ERROR!
with expansion:
CHECK( 5 == 10 )
-===============================================================================
+== TEST CASE ==================================================================
main.cpp(0)
test with a fixture - 2