From a6704ce16bbdb5ad09ca59545aedca9bf47ebfde Mon Sep 17 00:00:00 2001 From: fdai7968 Date: Mon, 5 Feb 2024 20:14:19 +0000 Subject: [PATCH] Update test/subtraction/subtraction.c --- test/subtraction/subtraction | 1 - test/subtraction/subtraction.c | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) delete mode 100644 test/subtraction/subtraction create mode 100644 test/subtraction/subtraction.c diff --git a/test/subtraction/subtraction b/test/subtraction/subtraction deleted file mode 100644 index 8b13789..0000000 --- a/test/subtraction/subtraction +++ /dev/null @@ -1 +0,0 @@ - diff --git a/test/subtraction/subtraction.c b/test/subtraction/subtraction.c new file mode 100644 index 0000000..8894e75 --- /dev/null +++ b/test/subtraction/subtraction.c @@ -0,0 +1,8 @@ +#include "unity.h" +#include "subtraction.h" + +void test_subtraction() { + TEST_ASSERT_EQUAL_INT(1, subtract(3, 2)); + TEST_ASSERT_EQUAL_INT(5, subtract(2, -3)); + TEST_ASSERT_EQUAL_INT(0, subtract(0, 0)); +}