From bd68e4032492d1392ca97dd75c713f8a17e58258 Mon Sep 17 00:00:00 2001 From: cxnnqr Date: Tue, 6 Feb 2024 13:42:31 +0100 Subject: [PATCH] refactoring: added comments --- test/kgV/test_kgV.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/test/kgV/test_kgV.c b/test/kgV/test_kgV.c index 7c9c100..39d5d4b 100644 --- a/test/kgV/test_kgV.c +++ b/test/kgV/test_kgV.c @@ -5,10 +5,18 @@ void setUp(void){} void tearDown(void){} +// Tests for common Cases: void test_kgV8And6(void) { TEST_ASSERT_EQUAL_INT(24, kgV(8, 6)); } +void test_kgVOf2And17(){ + TEST_ASSERT_EQUAL_INT(34, kgV(2, 17)); +} + + + +// Tests for Cases with Zero in input: void test_kgVOfFirstNumberZero(){ TEST_ASSERT_EQUAL_INT(0, kgV(0, 5)); } @@ -21,10 +29,9 @@ void test_kgVOfBothNumbersZero(){ TEST_ASSERT_EQUAL_INT(0, kgV(0, 0)); } -void test_kgVOf2And17(){ - TEST_ASSERT_EQUAL_INT(34, kgV(2, 17)); -} + +// Tests for Cases with negative numbers void test_kgVOfFirstNumberNegative(){ TEST_ASSERT_EQUAL_INT(34, kgV(-2, 17)); }