Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190501 (experimental)

Options
Boost 1.70.0
C++11
no pedantic
Raw compiler options
-Wall -Wextra

Author

anonymous

about 6 years ago

doctest.h
parts\doctest_fwd.h

$ g++ prog.cc -I/opt/wandbox/boost-1.70.0/gcc-head/include -std=c++11 -Wall -Wextra
[doctest] doctest version is "2.3.2"
[doctest] run with "--help" for options
===============================================================================
prog.cc:8:
TEST CASE:  testing the factorial function

prog.cc:9: ERROR: CHECK( fact(0) == 1 ) is NOT correct!
  values: CHECK( 0 == 1 )

===============================================================================
[doctest] test cases:      1 |      0 passed |      1 failed |      0 skipped
[doctest] assertions:      5 |      4 passed |      1 failed |
[doctest] Status: FAILURE!
Exit Code:
1