|
|
@ -36,4 +36,12 @@ void test_minitaschenrechner_0_plus_2(void) |
|
|
|
float result = addieren(0, 2); |
|
|
|
TEST_ASSERT_EQUAL(2, result); |
|
|
|
} |
|
|
|
|
|
|
|
// test subtraktion |
|
|
|
void test_minitaschenrechner_5_minus_2(void) |
|
|
|
{ |
|
|
|
float result = subtrahieren(5, 2); |
|
|
|
TEST_ASSERT_EQUAL(3, result); |
|
|
|
} |
|
|
|
|
|
|
|
#endif // TEST |