From 9abca4b85c0b84fdd88876b65185101f6c5e8e5a Mon Sep 17 00:00:00 2001 From: Justin Trausch Date: Tue, 6 Feb 2024 13:56:14 +0100 Subject: [PATCH] =?UTF-8?q?test=5Fprodukt=5F1=20f=C3=BCr=20Start=3D1=20und?= =?UTF-8?q?=20Ende=3D1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ProduktSumme.h | 1 + test/test_ProduktSumme.c | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/src/ProduktSumme.h b/src/ProduktSumme.h index aa9d551..93f60e5 100644 --- a/src/ProduktSumme.h +++ b/src/ProduktSumme.h @@ -4,5 +4,6 @@ #ifndef LINKES_TWIX_PRODUKTSUMME_H #define LINKES_TWIX_PRODUKTSUMME_H +int berechneProdukt(int, int); #endif //LINKES_TWIX_PRODUKTSUMME_H diff --git a/test/test_ProduktSumme.c b/test/test_ProduktSumme.c index c3fe8e6..a7dcbd1 100644 --- a/test/test_ProduktSumme.c +++ b/test/test_ProduktSumme.c @@ -12,4 +12,15 @@ void setUp(void) void tearDown(void) { } + +void test_produkt_1(void) +{ + int result, expected = 1; + + result = berechneProdukt(1,1); + + TEST_ASSERT_EQUAL_INT(expected, result); +} + + #endif //TEST