Browse Source

Test Modulo

remotes/origin/erwin
fdai7820 11 months ago
parent
commit
84d327063e
  1. 11
      src/test/test_duellist_spielesammlung_projekt.c

11
src/test/test_duellist_spielesammlung_projekt.c

@ -525,7 +525,18 @@ void test_division_byZero_returnsZero(void)
TEST_ASSERT_EQUAL_INT(0, result);
}
void test_modulo(void)
{
/* arrange */
int a = 15;
int b = 7;
/* act */
int result = modulo(a, b);
/* assert */
TEST_ASSERT_EQUAL_INT(1, result);
}

Loading…
Cancel
Save