Browse Source

Update test_calculator.c

remotes/origin/develop
fdai7801 11 months ago
parent
commit
8a87c2ece0
  1. 10
      src/test/c/test_calculator.c

10
src/test/c/test_calculator.c

@ -219,4 +219,14 @@ void test_BinToDec(void) {
// Assert // Assert
TEST_ASSERT_EQUAL_INT64(8, result); TEST_ASSERT_EQUAL_INT64(8, result);
} }
void test_additionbin(void) {
// Arrange
long long int result;
// Act
result = additionbin(1,1);
// Assert
TEST_ASSERT_EQUAL_INT64(10, result);
}
Loading…
Cancel
Save