From 5a03f4763940b17d5191e73d84c726744274567f Mon Sep 17 00:00:00 2001 From: cxnnqr Date: Thu, 1 Feb 2024 23:24:39 +0100 Subject: [PATCH] added test for both numbers 0 --- test/ggT/test_ggT.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/ggT/test_ggT.c b/test/ggT/test_ggT.c index f2d3f12..8fabac0 100644 --- a/test/ggT/test_ggT.c +++ b/test/ggT/test_ggT.c @@ -41,4 +41,17 @@ void test_ggTOfPositiveAnd0(){ //assert TEST_ASSERT_EQUAL_INT(expected, result); +} + +void test_ggTOfBoth0(){ + //arrange + int a = 0; + int b = 0; + int expected = 0; + + //act + int result = ggT(a,b); + + //assert + TEST_ASSERT_EQUAL_INT(expected,result); } \ No newline at end of file