asserter.cpp

来自「这是用VB6.0写的一个通用的CPU卡操作程序,支持PC/SC接口 安装任何一个」· C++ 代码 · 共 58 行

CPP
58
字号
#include <cppunit/Asserter.h>#include <cppunit/NotEqualException.h>namespace CppUnit{namespace Asserter{void fail( std::string message,       SourceLine sourceLine ){  throw Exception( message, sourceLine );}void failIf( bool shouldFail,         std::string message,         SourceLine location ){  if ( shouldFail )    fail( message, location );}void failNotEqual( std::string expected,               std::string actual,               SourceLine sourceLine,              std::string additionalMessage ){  throw NotEqualException( expected,                            actual,                            sourceLine,                            additionalMessage );}void failNotEqualIf( bool shouldFail,                std::string expected,                 std::string actual,                 SourceLine sourceLine,                std::string additionalMessage ){  if ( shouldFail )    failNotEqual( expected, actual, sourceLine, additionalMessage );}} // namespace Asserter} // namespace CppUnit

⌨️ 快捷键说明

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