Browse Source

Test für divide() erstellt, der auf die Division von 24 durch 3 testet

remotes/origin/habib
Habib 11 months ago
parent
commit
278f4d606f
  1. 13
      src/test/test_funktionen.c

13
src/test/test_funktionen.c

@ -50,4 +50,17 @@ void test_5_minus_2(void)
TEST_ASSERT_EQUAL_INT(expected, actual); TEST_ASSERT_EQUAL_INT(expected, actual);
} }
void test_24_divided_by_3(void)
{
/* arrange */
int actual;
int expected = 8;
/* act */
actual = divide(24, 3);
/* assert */
TEST_ASSERT_EQUAL_INT(expected, actual);
}
#endif #endif
Loading…
Cancel
Save