From aadef721f647036e8887cfbb82775f5d9225c7b9 Mon Sep 17 00:00:00 2001 From: cxnnqr Date: Fri, 2 Feb 2024 15:53:30 +0100 Subject: [PATCH] added test for common case --- 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 6c63776..bc6ec47 100644 --- a/test/kgV/test_kgV.c +++ b/test/kgV/test_kgV.c @@ -56,3 +56,16 @@ void test_kgVOfBothNumbersZero(){ //assert TEST_ASSERT_EQUAL_INT(expected, result); } + +void test_kgVOf2And17(){ + //arrange + int a = 2; + int b = 17; + int expected = 34; + + //act + int result = kgV(a, b); + + //assert + TEST_ASSERT_EQUAL_INT(expected, result); +}