Browse Source

added simple test for input 6 and 8

remotes/origin/kgV
cxnnqr 11 months ago
parent
commit
08b43f0ba2
  1. 17
      test/kgV/test_kgV.c

17
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);
}
Loading…
Cancel
Save