|
@ -12,10 +12,28 @@ void tearDown(void) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void testingCeedlingFunctionality() |
|
|
|
|
|
|
|
|
void test_drawScissorScissor() |
|
|
{ |
|
|
{ |
|
|
int expectedResult = 1; |
|
|
|
|
|
|
|
|
int expectedResult = 0; |
|
|
|
|
|
|
|
|
|
|
|
int actualResult = calculateWinner(1,1); |
|
|
|
|
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_drawRockRock() |
|
|
|
|
|
{ |
|
|
|
|
|
int expectedResult = 0; |
|
|
|
|
|
|
|
|
|
|
|
int actualResult = calculateWinner(2,2); |
|
|
|
|
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
|
|
} |
|
|
|
|
|
void test_drawPaperPaper() |
|
|
|
|
|
{ |
|
|
|
|
|
int expectedResult = 0; |
|
|
|
|
|
|
|
|
|
|
|
int actualResult = calculateWinner(3,3); |
|
|
|
|
|
|
|
|
int actualResult = 1; |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
} |
|
|
} |