From b054c14fceef604ddd225e789cd3bfe8ef08e05d Mon Sep 17 00:00:00 2001 From: cxnnqr Date: Thu, 1 Feb 2024 23:22:23 +0100 Subject: [PATCH] added test for first number positive and second number 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 6230370..f2d3f12 100644 --- a/test/ggT/test_ggT.c +++ b/test/ggT/test_ggT.c @@ -29,3 +29,16 @@ void test_ggTOf0AndPositiveNumber(){ //assert TEST_ASSERT_EQUAL_INT(expected, result); } + +void test_ggTOfPositiveAnd0(){ + //arrange + int a = 10; + int b = 0; + int expected = 10; + + //act + int result = ggT(a,b); + + //assert + TEST_ASSERT_EQUAL_INT(expected, result); +} \ No newline at end of file