Browse Source

added multi function

remotes/origin/multiplication
fdai7930 11 months ago
parent
commit
9911b1d974
  1. 11
      src/multiplication.c
  2. 4
      src/multiplication.h
  3. 20
      test/test_multiplication.c

11
src/multiplication.c

@ -0,0 +1,11 @@
#include "multiplication.h"
#include <stdio.h>
double multi( double ein1, double ein2) {
return (ein1 * ein2);
}

4
src/multiplication.h

@ -0,0 +1,4 @@
#ifndef MULTIPLICATION_H
#define MULTIPLICATION_H
extern double multi(double ein1, double ein2);
#endif // MULTIPLICATION_H

20
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
Loading…
Cancel
Save