Beispiel #1
2
 CheckedintUnittest()
 {
     unittest1();
     unittest2();
     unittest3();
     unittest4();
     unittest5();
     unittest6();
     unittest7();
     unittest8();
     unittest9();
     unittest10();
     unittest11();
     unittest12();
     unittest13();
 }
Beispiel #2
2
int main(int argc, char *argv[]) {

    printf("\n\n\n  ONE  \n\n");
    unittest1();
    printf("\n\n\n  TWO  \n\n");
    unittest2();
    printf("\n\n\n  THREE  \n\n");
    unittest3();
    printf("\n\n\n  FOUR  \n\n");
    unittest4();
    printf("\n\n\n  FIVE  \n\n");
    cardtest1();
    printf("\n\n\n  SIX  \n\n");
    cardtest2();
    printf("\n\n\n  SEVEN  \n\n");
    cardtest3();
    printf("\n\n\n  EIGHT  \n\n");
    cardtest4();

	return 0;
}
int main()
{
    // run tests
    unittest1();
    unittest2();
    unittest3();
    unittest4();
    cardtest1();
    cardtest2();
    cardtest3();
    cardtest4();

    return 0;
}
Beispiel #4
0
int main()
{
  int i;
  int TEST_TIMES= 3;
  struct gameState testerState;
  srand(time(0));

  printf("*****************************************************\n");
  printf("*CARDTEST4 Suite \n");
  printf("  (tests VILLAGE with 3 semi-random states)\n");
  printf("*****************************************************\n");
  for(i=0; i<TEST_TIMES; i++)
  {    
    createRandState(&testerState);
    testerState.handCount[testerState.whoseTurn]= rand() % 13 +1;
    unittest2(&testerState);
  }
  
  return 0;
}