示例#1
0
int main() {
  TestRunner run;
  run.addTest(EvalNodeTest::isNumberTest, "isNumberTest");
  run.runTests();
  
  return 0;
}
示例#2
0
文件: casTest.cpp 项目: rlwhite/cas2
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;
}
示例#3
0
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;
}
示例#4
0
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();
}