diff --git a/src/sendmoney.h b/src/sendmoney.h index 5feb02d..4bc6bb4 100644 --- a/src/sendmoney.h +++ b/src/sendmoney.h @@ -7,4 +7,5 @@ bool checkAccount(int accountNumber); double getAvailableAccountBalance(double balance); +float getAmount(float amountToSend); #endif // SENDMONEY_H diff --git a/test/test_sendmoney.c b/test/test_sendmoney.c index 49e18d0..9db034c 100644 --- a/test/test_sendmoney.c +++ b/test/test_sendmoney.c @@ -44,5 +44,15 @@ void test_getAvailableAccountBalance(void) // Assert TEST_ASSERT_EQUAL(expected, result); } +// hier wird die Methode getAmount() getestet +void test_getAmount(void) +{ + // Arrage + float expected = 500.1; + + float result = getAmount(expected); + + TEST_ASSERT_EQUAL(expected, result); +} #endif // TEST