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.
|
|
#include "unity.h"
#include "kgV.h"
#include "ggT.h"
void setUp(void){} void tearDown(void){}
void test_kgV8And6(void) { //arrange
int a = 8; int b = 6; int expected = 24;
//act
int result = kgV(a, b);
//assert
TEST_ASSERT_EQUAL_INT(expected, result); }
void test_kgVOfFirstNumberZero(){ //arrange
int a = 0; int b = 5; int expected = 0;
//act
int result = kgV(a, b);
//assert
TEST_ASSERT_EQUAL_INT(expected, result); }
void test_kgVOfSecondNumberZero(){ //arrange
int a = 5; int b = 0; int expected = 0;
//act
int result = kgV(a, b);
//assert
TEST_ASSERT_EQUAL_INT(expected, result); }
void test_kgVOfBothNumbersZero(){ //arrange
int a = 0; int b = 0; int expected = 0;
//act
int result = kgV(a, b);
//assert
TEST_ASSERT_EQUAL_INT(expected, result); }
|