|
|
@ -62,5 +62,31 @@ void test_lose_USER_Rock_COM_Paper() |
|
|
|
|
|
|
|
int actualResult = calculateWinner(2,3); |
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
} |
|
|
|
void test_Win_USER_Scissor_COM_Paper() |
|
|
|
{ |
|
|
|
int expectedResult = 1; |
|
|
|
|
|
|
|
int actualResult = calculateWinner(1,3); |
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
} |
|
|
|
|
|
|
|
void test_Win_USER_Rock_COM_Scissor() |
|
|
|
{ |
|
|
|
int expectedResult = 1; |
|
|
|
|
|
|
|
int actualResult = calculateWinner(2,1); |
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
} |
|
|
|
|
|
|
|
void test_Win_USER_Paper_COM_Rock() |
|
|
|
{ |
|
|
|
int expectedResult = 1; |
|
|
|
|
|
|
|
int actualResult = calculateWinner(3,2); |
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); |
|
|
|
} |