Skip to content
Snippets Groups Projects
HelperMacros.h 412 B
Newer Older
  • Learn to ignore specific revisions
  • #ifndef _ALIB2STD_CATCH2_
    #define _ALIB2STD_CATCH2_
    
    #include <catch2/catch.hpp>
    
    #define CHECK_IMPLY(x,y) CHECK ( ( ! ( x ) || ( y ) ) )
    #define CHECK_EXCLUSIVE_OR(x,y) CHECK ( ( ( !( x ) && ( y ) ) || ( ( x ) && !( y ) ) ) )
    #define REQUIRE_IMPLY(x,y) REQUIRE ( ( ! ( x ) || ( y ) ) )
    #define REQUIRE_EXCLUSIVE_OR(x,y) REQUIRE ( ( ( !( x ) && ( y ) ) || ( ( x ) && !( y ) ) ) )
    
    #endif /* _ALIB2STD_CATCH2_ */