Language
C++
Compiler
gcc HEAD 8.0.0 20170514 (experimental)
Options
Boost 1.64.0
C++1z(GNU)
no pedantic
Raw compiler options
-Wall
-Wextra
$ g++ prog.cc -I/opt/wandbox/boost-1.64.0/gcc-head/include -std=gnu++1z -Wall -Wextra
[doctest] doctest version is "1.2.0"
[doctest] run with "--help" for options
===============================================================================
prog.cc(6)
TEST CASE: testing the factorial function
prog.cc(7) ERROR!
CHECK( factorial(0) == 1 )
with expansion:
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