Browse Source

added test for first number 0 and second number positive

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

13
test/ggT/test_ggT.c

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