From fed0b4e4b9dd2f9ec7a8cbe01aa5d2b1ac269f15 Mon Sep 17 00:00:00 2001 From: Celine Khazarian Date: Thu, 8 Feb 2024 23:02:30 +0100 Subject: [PATCH] Test 8 C wins --- 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 900c1d4..2169409 100644 --- a/src/test/c/test_SchereSteinPapier.c +++ b/src/test/c/test_SchereSteinPapier.c @@ -98,6 +98,19 @@ void test_SchereSteinPapier_Win_ComputerV2(void) /* act */ 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 */ TEST_ASSERT_EQUAL_INT(expected, actual); } \ No newline at end of file