예제 #1
0
void MatrixTester::runTests() {
	cout << "Testing class Matrix." << endl;
	testConstructor();
	testEquality();
	testCopyConstructor();
	testAssignment();
        testAddition();
	testTranspose();
	cout << "All tests passed!" << endl;
}
예제 #2
0
	void simpleMatrixTest::Run()
	{
		printf("\tsimpleMatrixTest...");

		testConstructor();
		testAssignment();
		testElementAssignment();
		testElementExtraction();
		testTranspose();

		testUnsafeConstructor();
		testUnsafeAssignment();
		testUnsafeElementAssignment();
		testUnsafeElementExtraction();

		printf("passed\n");
	}
예제 #3
0
string TestCell::allTests()
{
    //For each testing function, run and concatenate the results to output string
    string output = "";
    output += testConstructor();
    output += testStep();
    output += testEvolve();
    output += testAssign_Apoptosis();
    output += testAssign_Proliferation();
    output += testAssign_Differentiation();
    output += testAssign_Move();

    if (output == "")
        output = "All tests passed successfully\n";

    return output;
}