Created
January 6, 2015 15:32
-
-
Save kris-jusiak/631e3f68fe29b04b7b0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef TEST_HPP | |
#define TEST_HPP | |
#include <cassert> | |
#define expect(...) assert((__VA_ARGS__)) | |
#define expect_eq(t1, t2) assert((t1 == t2)) | |
#define expect_neq(t1, t2) assert((t1 != t2)) | |
struct test { | |
template<class Test> | |
test(const Test& test) { | |
test(); | |
} | |
}; | |
struct test_skip { | |
template<class Test> | |
test_skip(const Test&) { } | |
}; | |
template<class T> | |
struct test_type { | |
using type = T; | |
}; | |
int main() { } | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment