📄 main.cpp
字号:
#include <tut/tut.hpp>#include <tut/tut_reporter.hpp>#include <iostream>using std::exception;using std::cerr;using std::endl;namespace tut{ test_runner_singleton runner;}int main(){ tut::reporter reporter; tut::runner.get().set_callback(&reporter); try { tut::runner.get().run_tests(); } catch (const std::exception& ex) { cerr << "tut raised ex: " << ex.what() << endl; return 1; } return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -