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.
20 lines
386 B
20 lines
386 B
#include "unity.h"
|
|
#include "subtraktion.h"
|
|
|
|
void setUp(void)
|
|
{
|
|
}
|
|
|
|
void tearDown(void)
|
|
{
|
|
}
|
|
|
|
void test_subtraktion_5_minus_4(void)
|
|
{
|
|
double result, expected = 1.0; // Erwartetes Ergebnis soll 1.0 sein
|
|
|
|
result = subdouble(5.0, 4.0); // Aufruf der Subtraktionsfunktion
|
|
|
|
TEST_ASSERT_EQUAL_DOUBLE(expected, result); // Überprüfung, ob das Ergebnis dem Erwarteten entspricht
|
|
}
|
|
|