Browse Source

Test für subtract() erstellt, der auf die Subtraktion von 5 und 2 testet

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

13
src/test/test_funktionen.c

@ -37,4 +37,17 @@ void test_11_multiplied_by_11(void)
TEST_ASSERT_EQUAL_INT(expected, actual); TEST_ASSERT_EQUAL_INT(expected, actual);
} }
void test_5_minus_2(void)
{
/* arrange */
int actual;
int expected = 3;
/* act */
actual = subtract(5, 2);
/* assert */
TEST_ASSERT_EQUAL_INT(expected, actual);
}
#endif #endif
Loading…
Cancel
Save