You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

44 lines
663 B

#include "unity.h"
#include "ggT.h"
void setUp(){}
void tearDown(){}
void test_ggTOf5And10(){
//arrange
int a = 5;
int b = 10;
int expected = 5;
//act
int result = ggT(a,b);
//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);
}
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);
}