11 lines
246 B

  1. #include "unity.h"
  2. #include "subtraction.h"
  3. void setUp(){}
  4. void tearDown(){}
  5. void test_subtraction() {
  6. TEST_ASSERT_EQUAL_INT(1, subtract(3, 2));
  7. TEST_ASSERT_EQUAL_INT(5, subtract(2, -3));
  8. TEST_ASSERT_EQUAL_INT(0, subtract(0, 0));
  9. }