File: alternative_macros.cpp

package info (click to toggle)
doctest 2.4.5%2Brepack0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,064 kB
  • sloc: cpp: 11,871; python: 369; makefile: 16
file content (15 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "doctest_proxy.h"

my_testcase("custom macros") {
    my_check(1 == 1);
    
    my_check_eq(1, 1);
    
    my_subcase("bar") {
        my_subcase("foo") { /* code code code */ }
        my_subcase("baz") { /* code code code */ }
        
        my_require(5 > 3);
    }
    // CHECK(1 == 1); <== ERROR - the default short macros are disabled from the proxy header
}