File: alternative_macros.cpp

package info (click to toggle)
doctest 1.2.9%2Brepack0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,264 kB
  • sloc: cpp: 9,836; python: 363; makefile: 14
file content (15 lines) | stat: -rw-r--r-- 339 bytes parent folder | download
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_fast_check_eq(1, 1);
    
    my_subcase("bar") {
        my_subcase("foo") {}
        my_subcase("baz") {}
        
        my_require(5 > 3);
    }
    // CHECK(1 == 1); <== ERROR - the default short macros are disabled from the proxy header
}