From afc2feefa975a27a0a829ed36075f7b023b50786 Mon Sep 17 00:00:00 2001 From: Sandro Welte Date: Fri, 9 Feb 2024 17:15:12 +0100 Subject: [PATCH] Comitted Unit Test --- test/test_arithmeticMultiplication_Double.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/test_arithmeticMultiplication_Double.c diff --git a/test/test_arithmeticMultiplication_Double.c b/test/test_arithmeticMultiplication_Double.c new file mode 100644 index 0000000..2077e91 --- /dev/null +++ b/test/test_arithmeticMultiplication_Double.c @@ -0,0 +1,18 @@ +#include "unity.h" +#include "../src/arithmeticMultiplication_Double.h" +#include "limits.h" + +void setUp(void) { + // set up code here +} + +void tearDown(void) { + // clean up code here +} + +void test_arithmeticMultiplication_doubletimesdoubleequalsdouble(void) { + double expectedResult = 10.0; + double* result = multiplication_double(2.0, 5.0); + TEST_ASSERT_EQUAL_DOUBLE(expectedResult, *result); + +}