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.
21 lines
365 B
21 lines
365 B
#include "unity.h"
|
|
#include "funktion.h"
|
|
|
|
|
|
void setUp(void)
|
|
{
|
|
}
|
|
|
|
void tearDown(void)
|
|
{
|
|
}
|
|
|
|
void test_trapezFlaeche_calculates_correct_area(void) {
|
|
double a = 6.0;
|
|
double b = 8.0;
|
|
double h = 3.0;
|
|
double result = trapezFlaeche(a,b,h);
|
|
double ergebnis = 21;
|
|
printf("Testergebniss %f", ergebnis);
|
|
TEST_ASSERT_EQUAL_FLOAT(result, ergebnis);
|
|
}
|