From 1c67ee7beff8083e3abd4822b32c97138f93807e Mon Sep 17 00:00:00 2001 From: Celine Khazarian Date: Thu, 8 Feb 2024 22:55:23 +0100 Subject: [PATCH] Test 6 I win --- src/test/c/test_SchereSteinPapier.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/test/c/test_SchereSteinPapier.c b/src/test/c/test_SchereSteinPapier.c index 1fd3146..f1f97af 100644 --- a/src/test/c/test_SchereSteinPapier.c +++ b/src/test/c/test_SchereSteinPapier.c @@ -72,6 +72,19 @@ void test_SchereSteinPapier_Win_SpielerV1(void) /* act */ actual = game('3', '2'); + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, actual); +} + +void test_SchereSteinPapier_Win_SpielerV2(void) +{ + /* arrange */ + int expected = 1; + int actual; + + /* act */ + actual = game('2', '1'); + /* assert */ TEST_ASSERT_EQUAL_INT(expected, actual); } \ No newline at end of file