Skip to content

Instantly share code, notes, and snippets.

@kris-jusiak
Created January 6, 2015 15:32
Show Gist options
  • Save kris-jusiak/631e3f68fe29b04b7b0f to your computer and use it in GitHub Desktop.
Save kris-jusiak/631e3f68fe29b04b7b0f to your computer and use it in GitHub Desktop.
#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