📄 main.cpp
字号:
#include <iostream>#include <exception>#include <tut/tut_restartable.hpp>#include <tut/tut_reporter.hpp>using std::cerr;using std::endl;using std::exception;using tut::reporter;using tut::restartable_wrapper;namespace tut{ test_runner_singleton runner;}int main(){ cerr << "NB: this application will be terminated by OS four times\n" "before you'll get test results, be patient restarting it.\n"; try { reporter visi; restartable_wrapper restartable; restartable.set_callback(&visi); restartable.run_tests(); } catch (const exception& ex) { cerr << "tut raised ex: " << ex.what() << endl; } return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -