Browse Source

Implementation der Tests für Testfall Unentschieden

remotes/origin/tim
fdai7727 11 months ago
parent
commit
feab52722b
  1. 24
      src/test/c/Tim/test_SchereSteinPapier.c

24
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);
}
Loading…
Cancel
Save