|
@ -0,0 +1,49 @@ |
|
|
|
|
|
#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_Dichte_der_Fluessigkeit_NeedToImplement(void) |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
double a=2; |
|
|
|
|
|
|
|
|
|
|
|
double b= 3; |
|
|
|
|
|
|
|
|
|
|
|
double c=5; |
|
|
|
|
|
|
|
|
|
|
|
double result=Dichte_der_Fluessigkeit(a,b,c); |
|
|
|
|
|
|
|
|
|
|
|
double ergebnis=0.1333333; |
|
|
|
|
|
|
|
|
|
|
|
printf("Testergebniss %d", ergebnis); |
|
|
|
|
|
|
|
|
|
|
|
UnityAssertFloatsWithin((UNITY_FLOAT)((UNITY_FLOAT)((result)) * (UNITY_FLOAT)(0.00001f)), (UNITY_FLOAT)((UNITY_FLOAT)((result))), (UNITY_FLOAT)((UNITY_FLOAT)((ergebnis))), (( |
|
|
|
|
|
|
|
|
|
|
|
((void *)0) |
|
|
|
|
|
|
|
|
|
|
|
)), (UNITY_UINT)((UNITY_UINT)(23))); |
|
|
|
|
|
|
|
|
|
|
|
} |