-
Tomáš Pecka authored
It really makes no sense to have it inside alib2std component. Moved into separate tests/ folder.
Tomáš Pecka authoredIt really makes no sense to have it inside alib2std component. Moved into separate tests/ folder.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
testing.h 421 B
#ifndef _ALT_CATCH2_HELPERS_
#define _ALT_CATCH2_HELPERS_
#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 /* _ALT_CATCH2_HELPERS_ */