From 2d7710b07e9f6c38fd58bb3e483351c021b852d8 Mon Sep 17 00:00:00 2001 From: fdai7801 Date: Fri, 9 Feb 2024 21:53:29 +0000 Subject: [PATCH] Update --- src/test/c/test_calculator.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test/c/test_calculator.c b/src/test/c/test_calculator.c index 7e029bd..ba35300 100644 --- a/src/test/c/test_calculator.c +++ b/src/test/c/test_calculator.c @@ -199,3 +199,15 @@ void test_performOperation_division_by_zero(void) { TEST_ASSERT_EQUAL_INT(0, performOperation(10, '/', 0)); } +void test_DecToBin(void) { + // Arrange + long long int result; + + // Act + result = DecToBin(8); + + // Assert + TEST_ASSERT_EQUAL_INT64(100, result); +} + +