|
@ -98,6 +98,19 @@ void test_SchereSteinPapier_Win_ComputerV2(void) |
|
|
/* act */ |
|
|
/* act */ |
|
|
actual = game('1', '2'); |
|
|
actual = game('1', '2'); |
|
|
|
|
|
|
|
|
|
|
|
/* assert */ |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_SchereSteinPapier_Win_ComputerV3(void) |
|
|
|
|
|
{ |
|
|
|
|
|
/* arrange */ |
|
|
|
|
|
int expected = 0; |
|
|
|
|
|
int actual; |
|
|
|
|
|
|
|
|
|
|
|
/* act */ |
|
|
|
|
|
actual = game('3', '1'); |
|
|
|
|
|
|
|
|
/* assert */ |
|
|
/* assert */ |
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
} |
|
|
} |