diff --git a/src/multiplication/multiplication.h b/src/multiplication/multiplication.h index 697e80f..295da10 100644 --- a/src/multiplication/multiplication.h +++ b/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 diff --git a/test/multiplication/test_calculator.c b/test/multiplication/test_calculator.c deleted file mode 100644 index 8b13789..0000000 --- a/test/multiplication/test_calculator.c +++ /dev/null @@ -1 +0,0 @@ - diff --git a/test/multiplication/test_multiplication.c b/test/multiplication/test_multiplication.c new file mode 100644 index 0000000..e02bb41 --- /dev/null +++ b/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)); +} +