Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- template <typename Func>
- void RunTestImpl(const Func& fnc, const string& funcstr) {
- fnc();
- cerr <<funcstr<<":OK"<<endl;
- }
- #define RUN_TEST(func) RunTestImpl((func),#func)
- void Test1() {
- //cerr << "Всякое успешное тестирование: ";
- }
- int main() {
- RUN_TEST(Test1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement