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.
18 lines
265 B
18 lines
265 B
#include "unity.h"
|
|
#include "ggT.h"
|
|
|
|
void setUp(){}
|
|
void tearDown(){}
|
|
|
|
void test_ggTOf2And10(){
|
|
//arrange
|
|
int a = 2;
|
|
int b = 10;
|
|
int expected = 5;
|
|
|
|
//act
|
|
int result = ggT(a,b);
|
|
|
|
//assert
|
|
TEST_ASSERT_EQUAL_STRING(expected, result);
|
|
}
|