From feab52722beb1e39400bf6cda3b0d3af5c37b861 Mon Sep 17 00:00:00 2001 From: fdai7727 Date: Thu, 25 Jan 2024 18:49:16 +0100 Subject: [PATCH] =?UTF-8?q?Implementation=20der=20Tests=20f=C3=BCr=20Testf?= =?UTF-8?q?all=20Unentschieden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/c/Tim/test_SchereSteinPapier.c | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/src/test/c/Tim/test_SchereSteinPapier.c b/src/test/c/Tim/test_SchereSteinPapier.c index afe264c..5a65733 100644 --- a/src/test/c/Tim/test_SchereSteinPapier.c +++ b/src/test/c/Tim/test_SchereSteinPapier.c @@ -12,10 +12,28 @@ void tearDown(void) } -void testingCeedlingFunctionality() +void test_drawScissorScissor() { - int expectedResult = 1; + int expectedResult = 0; + + int actualResult = calculateWinner(1,1); + + TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); +} + +void test_drawRockRock() +{ + int expectedResult = 0; + + int actualResult = calculateWinner(2,2); + + TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); +} +void test_drawPaperPaper() +{ + int expectedResult = 0; + + int actualResult = calculateWinner(3,3); - int actualResult = 1; TEST_ASSERT_EQUAL_INT(expectedResult, actualResult); } \ No newline at end of file