Browse Source

Test zahl1 groser zahl2

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

11
src/test/test_duellist_spielesammlung_projekt.c

@ -564,7 +564,18 @@ void test_compare_aLessThanB(void)
TEST_ASSERT_EQUAL_INT(-1, result);
}
void test_compare_aGreaterThanB(void)
{
/* arrange */
int a = 10;
int b = 7;
/* act */
int result = compare(a, b);
/* assert */
TEST_ASSERT_EQUAL_INT(1, result);
}

Loading…
Cancel
Save