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

📄 testresult.cpp

📁 计算机软件的测试驱动程序cppunit精简版。
💻 CPP
字号:

#include "TestResult.h"
#include "Failure.h"

#include <iostream>



void TestResult::testWasRun()
{
	testCount++;
}

void TestResult::startTests () 
{
}

void TestResult::addFailure (Failure failure) 
{
	using namespace std;

	cout << failure << endl;
	failureCount++;
}

void TestResult::endTests () 
{
	using namespace std;

	cout << testCount << " tests run" << endl;
	if (failureCount > 0)
		cout << "There were " << failureCount << " failures" << endl;
	else
		cout << "There were no test failures" << endl;
}

⌨️ 快捷键说明

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