From 2ae9a6fd657792a2fd1044fcfd6e9a40e2b8303b Mon Sep 17 00:00:00 2001 From: fdai7968 Date: Thu, 8 Feb 2024 16:18:45 +0000 Subject: [PATCH] Update test/division/test_division.c --- test/division/test_division.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/division/test_division.c b/test/division/test_division.c index 8b13789..0864f9e 100644 --- a/test/division/test_division.c +++ b/test/division/test_division.c @@ -1 +1,10 @@ - +#include "unity.h" +#include "division.h" +void setUp(void){} +void tearDown(void){} +void test_division() { + TEST_ASSERT_EQUAL_FLOAT(2.0f, divide(6.0f, 3.0f)); + TEST_ASSERT_EQUAL_FLOAT(-2.0f, divide(6.0f, -3.0f)); + TEST_ASSERT_EQUAL_FLOAT(0.0f, divide(0.0f, 5.0f)); + TEST_ASSERT_EQUAL_FLOAT(0.0f, divide(5.0f, 0.0f)); // Test für Division durch Null +}