Browse Source

Corrected naming mistake

remotes/origin/userinput
fdai7968 11 months ago
parent
commit
951389500c
  1. 2
      src/multiplication/multiplication.h
  2. 1
      test/multiplication/test_calculator.c
  3. 12
      test/multiplication/test_multiplication.c

2
src/multiplication/multiplication.h

@ -1,7 +1,7 @@
#ifndef multiplication_H
#define multiplication_H
int multiplication(int a, int b);
int multiply(int a, int b);
#endif

1
test/multiplication/test_calculator.c

@ -1 +0,0 @@

12
test/multiplication/test_multiplication.c

@ -0,0 +1,12 @@
#include "unity.h"
#include "multiplication.h"
void setUp(void){}
void tearDown(void){}
void test_multiplication() {
TEST_ASSERT_EQUAL_INT(6, multiply(2, 3));
TEST_ASSERT_EQUAL_INT(-6, multiply(2, -3));
TEST_ASSERT_EQUAL_INT(0, multiply(0, 0));
}
Loading…
Cancel
Save