From 9430c473b1a21f2de981f090a593f4e6801d9652 Mon Sep 17 00:00:00 2001 From: Laurin Date: Tue, 30 Jan 2024 23:56:39 +0100 Subject: [PATCH] added test for determining binary string length --- 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 2490896..c049622 100644 --- a/test/conversionOfNumbers/test_conversionOfNumbers.c +++ b/test/conversionOfNumbers/test_conversionOfNumbers.c @@ -14,4 +14,16 @@ void test_convert2ToBinaryStr(){ //assert TEST_ASSERT_EQUAL_STRING(expected, result); +} + +void test_binaryStringLengthOfInput5is3(){ + //arrange + int result; + int expected = 3; + + //act + result = binaryStrLen(5); + + //assert + TEST_ASSERT_EQUAL_INT(expected, result); } \ No newline at end of file