Browse Source

refactoring: added comments

remotes/origin/ggT
cxnnqr 11 months ago
parent
commit
3bf80b7127
  1. 8
      test/ggT/test_ggT.c

8
test/ggT/test_ggT.c

@ -4,10 +4,15 @@
void setUp(){}
void tearDown(){}
// Test for Common Case
void test_ggTOf5And10(){
TEST_ASSERT_EQUAL_INT(5, ggT(5, 10));
}
// Tests for Cases with Zero in input
void test_ggTOfFirstNumberZero(){
TEST_ASSERT_EQUAL_INT(5, ggT(0, 5));
}
@ -20,6 +25,9 @@ void test_ggTOfBothNumbersZero(){
TEST_ASSERT_EQUAL_INT(0, ggT(0, 0));
}
// Test for edge Case - Coprime Numbers
void test_ggTOfCoprimes(){
TEST_ASSERT_EQUAL_INT(1, ggT(13, 27));
}
Loading…
Cancel
Save