From 8a87c2ece03c98c3643ae4871dd3bac5f9854aea Mon Sep 17 00:00:00 2001 From: fdai7801 Date: Fri, 9 Feb 2024 21:56:50 +0000 Subject: [PATCH] Update test_calculator.c --- src/test/c/test_calculator.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/test/c/test_calculator.c b/src/test/c/test_calculator.c index 2b0e3e3..370fcd4 100644 --- a/src/test/c/test_calculator.c +++ b/src/test/c/test_calculator.c @@ -219,4 +219,14 @@ void test_BinToDec(void) { // Assert 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); +}