From e66f206d793f3ec1428b923a5a2c4d8c3662efbe Mon Sep 17 00:00:00 2001 From: Laurin Date: Fri, 2 Feb 2024 15:49:26 +0100 Subject: [PATCH] added test for hexStrLen function --- test/conversionOfNumbers/test_conversionOfNumbers.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/conversionOfNumbers/test_conversionOfNumbers.c b/test/conversionOfNumbers/test_conversionOfNumbers.c index c978215..a878c81 100644 --- a/test/conversionOfNumbers/test_conversionOfNumbers.c +++ b/test/conversionOfNumbers/test_conversionOfNumbers.c @@ -140,4 +140,16 @@ void test_convert12ToHexStrC(){ //assert TEST_ASSERT_EQUAL_STRING(expected, result); free(result); +} + +void test_binaryStringLengthOfInput256is3(){ + //arrange + int result; + int expected = 3; + + //act + result = hexStrLen(256); + + //assert + TEST_ASSERT_EQUAL_INT(expected, result); } \ No newline at end of file