From b0f3666513169421e4c93d240649370ea4c73ca1 Mon Sep 17 00:00:00 2001 From: Daniel M Date: Thu, 8 Feb 2024 11:54:34 +0100 Subject: [PATCH] Unittest04 --- src/test/test_duellist_spielesammlung_projekt.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/test/test_duellist_spielesammlung_projekt.c b/src/test/test_duellist_spielesammlung_projekt.c index 7f592ab..f8f06b0 100644 --- a/src/test/test_duellist_spielesammlung_projekt.c +++ b/src/test/test_duellist_spielesammlung_projekt.c @@ -253,6 +253,20 @@ void test_calculate_mines_WidthOne(void) TEST_ASSERT_EQUAL_INT(expected, result); } +void test_calculate_mines_NormalCase(void) +{ + /* arrange */ + int height = 5; + int width = 5; + int expected = 6; + + /* act */ + int result = calculate_mines(height, width); + + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, result); +} + void test_calculate_mines_HeightOne(void) { /* arrange */