Browse Source

Test zahl1 kleine zahl2

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

11
src/test/test_duellist_spielesammlung_projekt.c

@ -551,7 +551,18 @@ void test_compare_equalNumbers(void)
TEST_ASSERT_EQUAL_INT(0, result);
}
void test_compare_aLessThanB(void)
{
/* arrange */
int a = 3;
int b = 8;
/* act */
int result = compare(a, b);
/* assert */
TEST_ASSERT_EQUAL_INT(-1, result);
}

Loading…
Cancel
Save