Browse Source

Test gleiche zahlen

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

11
src/test/test_duellist_spielesammlung_projekt.c

@ -538,7 +538,18 @@ void test_modulo(void)
TEST_ASSERT_EQUAL_INT(1, result); TEST_ASSERT_EQUAL_INT(1, result);
} }
void test_compare_equalNumbers(void)
{
/* arrange */
int a = 5;
int b = 5;
/* act */
int result = compare(a, b);
/* assert */
TEST_ASSERT_EQUAL_INT(0, result);
}

Loading…
Cancel
Save