From d204caaab3a23b19c5876528d71072b0bac99724 Mon Sep 17 00:00:00 2001 From: Hendrik Sitzmann Date: Thu, 8 Feb 2024 21:26:44 +0100 Subject: [PATCH] added more tests --- test/gaussscheSummenformel/test_gaussscheSummenformel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/gaussscheSummenformel/test_gaussscheSummenformel.c b/test/gaussscheSummenformel/test_gaussscheSummenformel.c index 2395139..99a9219 100644 --- a/test/gaussscheSummenformel/test_gaussscheSummenformel.c +++ b/test/gaussscheSummenformel/test_gaussscheSummenformel.c @@ -5,6 +5,10 @@ void setUP(){} void tearDown(){} void test_gaussscheSummenformel() { + TEST_ASSERT_EQUAL_INT(1, gaussscheSummenformel(1)); + TEST_ASSERT_EQUAL_INT(15, gaussscheSummenformel(5)); + TEST_ASSERT_EQUAL_INT(55, gaussscheSummenformel(10)); + TEST_ASSERT_EQUAL_INT(5050, gaussscheSummenformel(100)); } \ No newline at end of file