Browse Source

Test addition

remotes/origin/Areeb
fdai7820 11 months ago
parent
commit
467a2bf1f5
  1. 12
      src/test/test_duellist_spielesammlung_projekt.c

12
src/test/test_duellist_spielesammlung_projekt.c

@ -459,6 +459,18 @@ void test_generateRandomNumber_withinValidRange(void)
TEST_ASSERT_TRUE(result >= 1 && result <= 100); TEST_ASSERT_TRUE(result >= 1 && result <= 100);
} }
void test_addition(void)
{
/* arrange */
int a = 5;
int b = 10;
/* act */
int result = addition(a, b);
/* assert */
TEST_ASSERT_EQUAL_INT(15, result);
}

Loading…
Cancel
Save