From b49e556e9e9742c4603d9fc0e86a22f56504c353 Mon Sep 17 00:00:00 2001 From: cxnnqr Date: Thu, 1 Feb 2024 23:16:01 +0100 Subject: [PATCH] added test for first number 0 and second number positive --- 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 c8473d5..6230370 100644 --- a/test/ggT/test_ggT.c +++ b/test/ggT/test_ggT.c @@ -16,3 +16,16 @@ void test_ggTOf5And10(){ //assert TEST_ASSERT_EQUAL_INT(expected, result); } + +void test_ggTOf0AndPositiveNumber(){ + //arrange + int a = 0; + int b = 5; + int expected = 5; + + //act + int result = ggT(a,b); + + //assert + TEST_ASSERT_EQUAL_INT(expected, result); +}