📄 ppc_test.cpp
字号:
///==================================================
/**
* @file PPC_Test.cpp
* @brief
* @author Chenfeng Zhou <ini_autumn@163.com>
*
* Created : <2005-02-24 16:01:44 by Cheney Chow>
* Last update: <2005-02-24 16:06:46 by Cheney Chow>
*/
///==================================================
#include "Global.h"
#include "Integer.h"
#include "Utils.h"
Core::Module *g_loader = NULL;
int main (int argc, char *argv[])
{
PRE_ROUTINE();
// Get the top level suite from the registry
CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();
// Adds the test to the list of test to run
CppUnit::TextUi::TestRunner runner;
runner.addTest( suite );
// Change the default outputter to a compiler error format outputter
runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),
std::cerr ) );
// Run the tests.
bool wasSucessful = runner.run();
// Return error code 1 if the one of test failed.
return wasSucessful ? 0 : 1;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -