Browse Source

added test for first number positive and second number 0

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

13
test/ggT/test_ggT.c

@ -29,3 +29,16 @@ void test_ggTOf0AndPositiveNumber(){
//assert //assert
TEST_ASSERT_EQUAL_INT(expected, result); TEST_ASSERT_EQUAL_INT(expected, result);
} }
void test_ggTOfPositiveAnd0(){
//arrange
int a = 10;
int b = 0;
int expected = 10;
//act
int result = ggT(a,b);
//assert
TEST_ASSERT_EQUAL_INT(expected, result);
}
Loading…
Cancel
Save