From 9911b1d974cd85f872a0a369778204e1c89ef643 Mon Sep 17 00:00:00 2001 From: fdai7930 Date: Tue, 6 Feb 2024 13:49:50 +0100 Subject: [PATCH] added multi function --- src/multiplication.c | 11 +++++++++++ src/multiplication.h | 4 ++++ test/test_multiplication.c | 20 ++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 src/multiplication.c create mode 100644 src/multiplication.h create mode 100644 test/test_multiplication.c diff --git a/src/multiplication.c b/src/multiplication.c new file mode 100644 index 0000000..7b29b87 --- /dev/null +++ b/src/multiplication.c @@ -0,0 +1,11 @@ +#include "multiplication.h" +#include + + +double multi( double ein1, double ein2) { + return (ein1 * ein2); +} + + + + diff --git a/src/multiplication.h b/src/multiplication.h new file mode 100644 index 0000000..a8570d0 --- /dev/null +++ b/src/multiplication.h @@ -0,0 +1,4 @@ +#ifndef MULTIPLICATION_H +#define MULTIPLICATION_H +extern double multi(double ein1, double ein2); +#endif // MULTIPLICATION_H diff --git a/test/test_multiplication.c b/test/test_multiplication.c new file mode 100644 index 0000000..1f564ac --- /dev/null +++ b/test/test_multiplication.c @@ -0,0 +1,20 @@ +#ifdef TEST + +#include "unity.h" + +#include "multiplication.h" + +void setUp(void) +{ +} + +void tearDown(void) +{ +} + +void test_multiplication_NeedToImplement(void) +{ + TEST_IGNORE_MESSAGE("Need to Implement multiplication"); +} + +#endif // TEST