|
@ -20,6 +20,19 @@ void test_SchereSteinPapier_Tie_Schere(void) |
|
|
/* act */ |
|
|
/* act */ |
|
|
actual = game('1', '1'); |
|
|
actual = game('1', '1'); |
|
|
|
|
|
|
|
|
|
|
|
/* assert */ |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_SchereSteinPapier_Tie_Stein(void) |
|
|
|
|
|
{ |
|
|
|
|
|
/* arrange */ |
|
|
|
|
|
int expected = -1; |
|
|
|
|
|
int actual; |
|
|
|
|
|
|
|
|
|
|
|
/* act */ |
|
|
|
|
|
actual = game('2', '2'); |
|
|
|
|
|
|
|
|
/* assert */ |
|
|
/* assert */ |
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
} |
|
|
} |