doctest

FORK: The fastest feature-rich C++11/14/17/20 single-header testing framework
git clone https://git.neptards.moe/neptards/doctest.git
Log | Files | Refs | README

alternative_macros.cpp (378B)


      1 #include "doctest_proxy.h"
      2 
      3 my_testcase("custom macros") {
      4     my_check(1 == 1);
      5     
      6     my_check_eq(1, 1);
      7     
      8     my_subcase("bar") {
      9         my_subcase("foo") { /* code code code */ }
     10         my_subcase("baz") { /* code code code */ }
     11         
     12         my_require(5 > 3);
     13     }
     14     // CHECK(1 == 1); <== ERROR - the default short macros are disabled from the proxy header
     15 }