From 80e53a4f80a7d8d50db009267d072b7d24379f5b Mon Sep 17 00:00:00 2001 From: Daniel M Date: Thu, 8 Feb 2024 12:00:41 +0100 Subject: [PATCH] Unittest09 --- 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 58bca44..dec7e3e 100644 --- a/src/test/test_duellist_spielesammlung_projekt.c +++ b/src/test/test_duellist_spielesammlung_projekt.c @@ -353,6 +353,20 @@ void test_calculate_mines_HeightZero(void) TEST_ASSERT_EQUAL_INT(expected, result); } +void test_calculate_mines_HeightWidthNumber(void) +{ + /* arrange */ + int height = 4; + int width = 6; + int expected = 6; + + /* act */ + int result = calculate_mines(height, width); + + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, result); +} + #endif // TEST