Browse Source

added test for common case

remotes/origin/kgV
cxnnqr 11 months ago
parent
commit
aadef721f6
  1. 13
      test/kgV/test_kgV.c

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