From e2b3066922c2a3cce244428c1c4bf517977b001e Mon Sep 17 00:00:00 2001 From: Justin Trausch Date: Wed, 7 Feb 2024 21:47:03 +0100 Subject: [PATCH] test_Summe_1 Start = 1 und Ende = 10 --- test/test_ProduktSumme.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/test_ProduktSumme.c b/test/test_ProduktSumme.c index a7dcbd1..5a27f35 100644 --- a/test/test_ProduktSumme.c +++ b/test/test_ProduktSumme.c @@ -22,5 +22,15 @@ void test_produkt_1(void) TEST_ASSERT_EQUAL_INT(expected, result); } +void test_Summe_1(void) +{ + int result, expected = 55; + + result = berechneSumme(1,10); + + TEST_ASSERT_EQUAL_INT(expected, result); +} + + #endif //TEST