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