|
@ -0,0 +1,39 @@ |
|
|
|
|
|
#include "src/funktion.h" |
|
|
|
|
|
#include "C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void setUp(void) |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void tearDown(void) |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void test_boolesche_oder_NeedToImplement(void) { |
|
|
|
|
|
|
|
|
|
|
|
int eingabe1 = 1; |
|
|
|
|
|
|
|
|
|
|
|
int eingabe2 = 1; |
|
|
|
|
|
|
|
|
|
|
|
int result = boolesche_oder(eingabe1, eingabe2); |
|
|
|
|
|
|
|
|
|
|
|
int ergebnis = 1; |
|
|
|
|
|
|
|
|
|
|
|
UnityAssertFloatsWithin((UNITY_FLOAT)((UNITY_FLOAT)((ergebnis)) * (UNITY_FLOAT)(0.00001f)), (UNITY_FLOAT)((UNITY_FLOAT)((ergebnis))), (UNITY_FLOAT)((UNITY_FLOAT)((result))), (( |
|
|
|
|
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
|
|
|
|
)), (UNITY_UINT)((UNITY_UINT)(18))); |
|
|
|
|
|
|
|
|
|
|
|
} |