⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.cpp

📁 VC源码,开源测试工具.有助于VC++的学习与开发
💻 CPP
字号:
#include <tut/tut.hpp>#include <tut/tut_reporter.hpp>#include <exception>#include <iostream>using tut::runner;using std::exception;using std::cout;using std::cerr;using std::endl;namespace tut{    test_runner_singleton runner;}int main(){    tut::reporter reporter;    try    {        tut::runner.get().set_callback(&reporter);        tut::runner.get().run_tests();        if (!reporter.all_ok())        {            cout << endl;            cout << "*********************************************************"                 << endl;            cout << "WARNING: THIS VERSION OF TUT IS UNUSABLE DUE TO ERRORS!!!"                 << endl;            cout << "*********************************************************"                 << endl;        }        else        {            cout << endl;            cout << "THIS VERSION OF TUT IS CORRECT" << endl;        }    }    catch (const std::exception& ex)    {        cerr << "tut raised ex: " << ex.what() << endl;        return 1;    }    catch( ... )    {        cerr << "tut raised unknown exception" << endl;        return 1;    }    return !reporter.all_ok();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -