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
396 B
21 lines
396 B
#include "unity.h"
|
|
#include <math.h>
|
|
#include "funktion.h"
|
|
|
|
void setUp(void)
|
|
{
|
|
}
|
|
|
|
void tearDown(void)
|
|
{
|
|
}
|
|
|
|
void test_dreieckFlaeche_NeedToImplement(void) {
|
|
double a = 4;
|
|
double b = 7;
|
|
double c = 9;
|
|
double s = (a + b + c) / 2;
|
|
double result = dreieckFlaeche(a, b, c);
|
|
double ergebnis = sqrt(s * (s - a) * (s - b) * (s - c));
|
|
TEST_ASSERT_EQUAL_FLOAT(ergebnis, result);
|
|
}
|