From d63830bc0c448de88f4ed6f883f1b84bf7a292bd Mon Sep 17 00:00:00 2001 From: Jonas Zitzmann Date: Fri, 9 Feb 2024 16:45:13 +0100 Subject: [PATCH] Commited Unit Test --- test/test_convert_kph_to_mps.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/test_convert_kph_to_mps.c diff --git a/test/test_convert_kph_to_mps.c b/test/test_convert_kph_to_mps.c new file mode 100644 index 0000000..62b3355 --- /dev/null +++ b/test/test_convert_kph_to_mps.c @@ -0,0 +1,18 @@ +#include "../src/convert_kph_to_mps.h" +#include "unity.h" +#include "limits.h" + +void setUp(void) { + // set stuff up here +} + +void tearDown(void) { + // clean stuff up here +} + +void test_convert_kph_to_mps_kpstomps(void){ + double expectedResult = 1.0; + double result; + result = converter_kph_to_mps(3.6); + TEST_ASSERT_EQUAL_DOUBLE(expectedResult, result); +}