Advertisement
kutuzzzov

Урок 6

Sep 5th, 2022
533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. template <typename Function>
  7. void RunTestImpl(Function func, const string& func_str) {
  8.     /* Напишите недостающий код */
  9.     func();
  10.     cerr << func_str << " OK" << endl;
  11. }
  12.  
  13. #define RUN_TEST(func) RunTestImpl((func), #func) // напишите недостающий код
  14.  
  15. void Test1() {
  16. }
  17.  
  18. int main() {
  19.     RUN_TEST(Test1);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement