From 99a7f7d00684cd082674852e7dcf2b4803ce7cf9 Mon Sep 17 00:00:00 2001 From: cxnnqr Date: Tue, 6 Feb 2024 12:43:36 +0100 Subject: [PATCH] added test for both numbers negative --- test/kgV/test_kgV.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/kgV/test_kgV.c b/test/kgV/test_kgV.c index 2b1359f..95918dc 100644 --- a/test/kgV/test_kgV.c +++ b/test/kgV/test_kgV.c @@ -95,3 +95,16 @@ void test_kgVOfSecondNumberNegative(){ //assert TEST_ASSERT_EQUAL_INT(expected, result); } + +void test_kgVOfBothNumbersNegative(){ + //arrange + int a = -2; + int b = -17; + int expected = 34; + + //act + int result = kgV(a, b); + + //assert + TEST_ASSERT_EQUAL_INT(expected, result); +}