From 87b5a7d42a7f71349b0dc3f9c3b622e5418cfae2 Mon Sep 17 00:00:00 2001 From: fdai7727 Date: Thu, 25 Jan 2024 18:53:31 +0100 Subject: [PATCH] =?UTF-8?q?Implementation=20der=20Test=20f=C3=BCr=20den=20?= =?UTF-8?q?Testfall=20'Sieg'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/c/Tim/test_SchereSteinPapier.c | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/test/c/Tim/test_SchereSteinPapier.c b/src/test/c/Tim/test_SchereSteinPapier.c index 6707100..bbe81fe 100644 --- a/src/test/c/Tim/test_SchereSteinPapier.c +++ b/src/test/c/Tim/test_SchereSteinPapier.c @@ -62,5 +62,31 @@ void test_lose_USER_Rock_COM_Paper() int actualResult = calculateWinner(2,3); + TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); +} +void test_Win_USER_Scissor_COM_Paper() +{ + int expectedResult = 1; + + int actualResult = calculateWinner(1,3); + + TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); +} + +void test_Win_USER_Rock_COM_Scissor() +{ + int expectedResult = 1; + + int actualResult = calculateWinner(2,1); + + TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); +} + +void test_Win_USER_Paper_COM_Rock() +{ + int expectedResult = 1; + + int actualResult = calculateWinner(3,2); + TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); } \ No newline at end of file