From 08b43f0ba23f12e89fee1f4352bddd69e61f878c Mon Sep 17 00:00:00 2001 From: cxnnqr Date: Fri, 2 Feb 2024 15:38:37 +0100 Subject: [PATCH] added simple test for input 6 and 8 --- test/kgV/test_kgV.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/kgV/test_kgV.c diff --git a/test/kgV/test_kgV.c b/test/kgV/test_kgV.c new file mode 100644 index 0000000..6c15e75 --- /dev/null +++ b/test/kgV/test_kgV.c @@ -0,0 +1,17 @@ +#include "unity.h" +#include "kgV.h" + +void setUp(void){} +void tearDown(void){} + +void test_kgV8And6(void) { + //arrange + int a = 8; + int b = 6; + int expected = 24; + + //act + int result = kgV(a, b); + + TEST_ASSERT_EQUAL_INT(expected, result); +}