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.
38 lines
493 B
38 lines
493 B
#include "unity.h"
|
|
#include <Umgebung.h>
|
|
#include <stdlib.h>
|
|
void setUp(void)
|
|
{
|
|
}
|
|
|
|
void tearDown(void)
|
|
{
|
|
}
|
|
void test_Umgebung_RealU(void){
|
|
|
|
int realU[N][N];
|
|
realU[14][15] = 0;
|
|
int result = RealU(realU);
|
|
|
|
TEST_ASSERT_EQUAL_INT(1, result);
|
|
|
|
|
|
}
|
|
void test_Umgebung_delay(void){
|
|
|
|
|
|
|
|
int result = delay(2);
|
|
|
|
TEST_ASSERT_EQUAL_INT(2, result);
|
|
}
|
|
|
|
|
|
void test_Umgebung_delay2(void){
|
|
|
|
|
|
|
|
int result = delay(4);
|
|
|
|
TEST_ASSERT_EQUAL_INT(4, result);
|
|
}
|