Browse Source

Test Division

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

11
src/test/test_duellist_spielesammlung_projekt.c

@ -499,7 +499,18 @@ void test_multiplication(void)
TEST_ASSERT_EQUAL_INT(50, result);
}
void test_division(void)
{
/* arrange */
int a = 15;
int b = 3;
/* act */
int result = division(a, b);
/* assert */
TEST_ASSERT_EQUAL_INT(5, result);
}

Loading…
Cancel
Save