From c6476962229037c18f16cdaa2b4ea2b3e06804ca Mon Sep 17 00:00:00 2001 From: Sandro Welte Date: Fri, 9 Feb 2024 17:15:34 +0100 Subject: [PATCH] Comitted Unit Test --- test/test_arithmeticMultiplication_Float.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/test_arithmeticMultiplication_Float.c diff --git a/test/test_arithmeticMultiplication_Float.c b/test/test_arithmeticMultiplication_Float.c new file mode 100644 index 0000000..8121145 --- /dev/null +++ b/test/test_arithmeticMultiplication_Float.c @@ -0,0 +1,18 @@ +#include "unity.h" +#include "../src/arithmeticMultiplication_Float.h" +#include "limits.h" + +void setUp(void) { + // set up code here +} + +void tearDown(void) { + // clean up code here +} + +void test_arithmeticMultiplication_floattimesfloatequalsfloat(void) { + float expectedResult = 10.0f; + float* result = multiplication_float(2.0f, 5.0f); + TEST_ASSERT_EQUAL_FLOAT(expectedResult, *result); + +}