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.
27 lines
349 B
27 lines
349 B
#ifdef TEST
|
|
#include "unity.h"
|
|
#include "game100.h"
|
|
|
|
|
|
void setUp(void){
|
|
//Wenn Funktion Vorraussetzungen braucht
|
|
}
|
|
void tearDown(void){
|
|
}
|
|
|
|
|
|
void test_log(void){
|
|
/* arrange */
|
|
int result;
|
|
double a = 4;
|
|
|
|
/* act */
|
|
result = log(4);
|
|
|
|
/* assert */
|
|
TEST_ASSERT_EQUAL_INT(4, result);//log(4)= 0.60205991
|
|
}
|
|
|
|
|
|
|
|
#endif // TEST
|