Browse Source

added test for both numbers 0

remotes/origin/ggT
cxnnqr 11 months ago
parent
commit
5a03f47639
  1. 13
      test/ggT/test_ggT.c

13
test/ggT/test_ggT.c

@ -41,4 +41,17 @@ void test_ggTOfPositiveAnd0(){
//assert //assert
TEST_ASSERT_EQUAL_INT(expected, result); TEST_ASSERT_EQUAL_INT(expected, result);
}
void test_ggTOfBoth0(){
//arrange
int a = 0;
int b = 0;
int expected = 0;
//act
int result = ggT(a,b);
//assert
TEST_ASSERT_EQUAL_INT(expected,result);
} }
Loading…
Cancel
Save