Browse Source

Update test_calculator.c

remotes/origin/develop
fdai7801 11 months ago
parent
commit
303f9814bf
  1. 9
      src/test/c/test_calculator.c

9
src/test/c/test_calculator.c

@ -209,5 +209,14 @@ void test_DecToBin(void) {
// Assert // Assert
TEST_ASSERT_EQUAL_INT64(100, result); TEST_ASSERT_EQUAL_INT64(100, result);
} }
void test_BinToDec(void) {
// Arrange
long long int result;
// Act
result = DecToBin(100);
// Assert
TEST_ASSERT_EQUAL_INT64(8, result);
}
Loading…
Cancel
Save