int main() { srand(time(0)); int errorCount = 0; errorCount = testGainCard(adventurer, 0); errorCount += testGainCard(adventurer, 1); errorCount += testGainCard(adventurer, 2); errorCount += testGainCard(adventurer, 3); errorCount += testGainCard(smithy, 0); errorCount += testGainCard(smithy, 1); errorCount += testGainCard(smithy, 2); errorCount += testGainCard(smithy, 3); errorCount += testGainCard(village, 0); errorCount += testGainCard(village, 1); errorCount += testGainCard(village, 2); errorCount += testGainCard(village, 3); if (errorCount) { printf("Error testing gainCard()\n"); } printf("\nUNIT TEST 4 COMPLETE with %d ERRORS\n\n", errorCount); return 0; }
int main() { testGainCard(); return 0; }
int main(int argc, char *argv[]) { testGainCard(); return 0; }