Browse Source

Test für power() erstellt

remotes/origin/habib
Habib 11 months ago
parent
commit
7c5b8c6c36
  1. 13
      src/test/test_funktionen.c

13
src/test/test_funktionen.c

@ -63,4 +63,17 @@ void test_24_divided_by_3(void)
TEST_ASSERT_EQUAL_INT(expected, actual); TEST_ASSERT_EQUAL_INT(expected, actual);
} }
void test_2_toThePowerOf_7(void)
{
/* arrange */
int actual;
int expected = 128;
/* act */
actual = power(2, 7);
/* assert */
TEST_ASSERT_EQUAL_INT(expected, actual);
}
#endif #endif
Loading…
Cancel
Save