当前位置: 首页>>代码示例>>C++>>正文


C++ TestRunner::runTests方法代码示例

本文整理汇总了C++中TestRunner::runTests方法的典型用法代码示例。如果您正苦于以下问题:C++ TestRunner::runTests方法的具体用法?C++ TestRunner::runTests怎么用?C++ TestRunner::runTests使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TestRunner的用法示例。


在下文中一共展示了TestRunner::runTests方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: main

int main() {
  TestRunner run;
  run.addTest(EvalNodeTest::isNumberTest, "isNumberTest");
  run.runTests();
  
  return 0;
}
开发者ID:ethanjurman,项目名称:prometheus,代码行数:7,代码来源:EvalNodeTest.cpp

示例2: main

int main(int argc, const char* const argv[])
{
    std::vector<TestCase*> tests;

    createTests(tests);

    TestRunner runner;
    runner.runTests(tests);

    int errCount(runner.getFailed());

    deleteTests(tests);

    return errCount;
}
开发者ID:rlwhite,项目名称:cas2,代码行数:15,代码来源:casTest.cpp

示例3: main

int main()
{
    ConnectionType type;
    QString address = "127.0.0.1::5025";
#ifdef Q_OS_WIN
    type = ConnectionType::VisaTcpSocketConnection;
#else
    type = ConnectionType::TcpSocketConnection;
#endif

    TestRunner testRunner;
//    testRunner.addTest(new UnitsTest);
    testRunner.addTest(new VnaChannelTest           (type, address));
//    testRunner.addTest(new VnaArbitraryFrequencyTest(type, address));
//    testRunner.addTest(new VnaIntermodTest          (type, address));
//    testRunner.addTest(new VnaSweepTest             (type, address));
//    testRunner.addTest(new VnaCalibrateTest         (type, address));
//    testRunner.addTest(new VnaPauseSweepsTest       (type, address));
//    testRunner.addTest(new VnaTraceTest             (type, address));

    qDebug() << "Global result: " << (testRunner.runTests() ? "PASS" : "FAIL");
    return 0;
}
开发者ID:Terrabits,项目名称:RsaToolbox,代码行数:23,代码来源:main.cpp

示例4: runTests

void runTests() {
	TestRunner runner;

	// Bayesian Node Tests
	runner.runTest("Can Sample Node", canSample);
	runner.runTest("Can Average Node Value", canAverage);
	runner.runTest("Can Marginalize Node", canMarginalizeNode);
	runner.runTest("Can obtain Markov Blanket of Node", canMarkovBlanket);
	
	// Bayesian Network Tests
	runner.runTest("Can Sample Network", canSampleNetwork);
	runner.runTest("Can Marginalize Network", canMarginalizeNetwork);

	ostringstream oss;
	for (int i = 100; i < 1000; i += 100) {
		oss << "Marginalization of Bayesian Network of Size (" << i << ")";
		for (int j = 8; j <= 64; j *= 2)
			runner.runTest(oss.str(), bind(run, i, j));
		oss.str("");
	}

	runner.runTests();
}
开发者ID:Hydrotoast,项目名称:bn_mcmc,代码行数:23,代码来源:BayesNetTests.cpp


注:本文中的TestRunner::runTests方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。