From 303f9814bf0e2cac2141bc46b30a33807149a5da Mon Sep 17 00:00:00 2001 From: fdai7801 Date: Fri, 9 Feb 2024 21:54:41 +0000 Subject: [PATCH] Update test_calculator.c --- src/test/c/test_calculator.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/test/c/test_calculator.c b/src/test/c/test_calculator.c index ba35300..2b0e3e3 100644 --- a/src/test/c/test_calculator.c +++ b/src/test/c/test_calculator.c @@ -209,5 +209,14 @@ void test_DecToBin(void) { // Assert 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); +}