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

📄 exampletestcase.h

📁 CppUnit is a C++ unit testing framework. 一种C++的测试工具
💻 H
字号:
#ifndef CPP_UNIT_EXAMPLETESTCASE_H#define CPP_UNIT_EXAMPLETESTCASE_H#include <cppunit/extensions/HelperMacros.h>/*  * A test case that is designed to produce * example errors and failures * */class ExampleTestCase : public CPPUNIT_NS::TestFixture{  CPPUNIT_TEST_SUITE( ExampleTestCase );  CPPUNIT_TEST( example );  CPPUNIT_TEST( anotherExample );  CPPUNIT_TEST( testAdd );  CPPUNIT_TEST( testDivideByZero );  CPPUNIT_TEST( testEquals );  CPPUNIT_TEST_SUITE_END();protected:	double			m_value1;	double			m_value2;public:	void			setUp ();protected:	void			example ();	void			anotherExample ();	void			testAdd ();	void			testDivideByZero ();	void			testEquals ();};#endif

⌨️ 快捷键说明

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