C++: Self-registering functions using macros for test libraries
Google’s C++ testing library has a nice syntax for registering tests, without needing to remember to add the tests to some central index. This article will show how to use macros to allow the creation of tests using only the following code:
Test(IntegerComparisonTest) {
int a = 3;
assert(a == 3);
}
Read more of "C++: Self-registering functions using macros for test libraries"