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