Пример #1
0
int main(int argc, char *argv[])
{

 testSequence();
 testUnivariateStats();
 testBivariateStats();
 testUtility();
 testVectorAlgebra(); 
 testMatrixDeterminant();
 testMatrixInverse();
 testLUFactorisation();
 testLUSolver();
 testGaussianElimination();
 testInterpolation();
 testIntegration();
 testRoot();
 testTimeStep();
 testRSignificanceTest();
 testChiSquared();
 testMultipleRegression(); 
 test_golden_fit();
 testSimplex(); 
 testSimplex2(); 
 testSimplex3();
 test_simplex_fit(); 


 return (EXIT_SUCCESS);

} 
Пример #2
0
int main()
{
	int i;
	int seed = 1000;
	int numPlayers = 2;
	int player  = 0;
	int *deckZero,*deckOne;
	struct gameState preTest, postTest;
	int k[10] = {adventurer, council_room, feast, gardens, mine ,remodel, smithy, village, baron, great_hall};
	/* Test Specification Variables */
	int drawCountTestZero = 3;
	int drawCountTestOne = 0;

	initializeGame(numPlayers,k,seed,&postTest);
	printf("\n\nBeginning Test for Village...\n\n");
	memcpy(&preTest,&postTest,sizeof(struct gameState));
	insertCard(&postTest,player);
	playCard((postTest.handCount[player]-1),0,0,0,&postTest);
	testDraw(&preTest,&postTest,player);
	testHand(&preTest,&postTest,player);
	testDiscard(&preTest,&postTest,player);
	testSupply(&preTest,&postTest);
	testPlayed(&preTest,&postTest);
	testUtility(&preTest,&postTest);
	printf("\n\tTesting finished\n\n");
}