Browse Source

added test to convert 2 into binary string

remotes/origin/conversionOfNumbers
Laurin 11 months ago
parent
commit
7c0bee3c9f
  1. 17
      test/conversionOfNumbers/test_conversionOfNumbers.c

17
test/conversionOfNumbers/test_conversionOfNumbers.c

@ -0,0 +1,17 @@
#include "unity.h"
#include "conversionOfNumbers.h"
void setUp(){}
void tearDown(){}
void test_convert2ToBinaryStr(){
//arrange
char* result;
char expected[] = "10";
//act
result = convertIntToBinaryStr(2);
//assert
TEST_ASSERT_EQUAL_STRING(expected, result);
}
Loading…
Cancel
Save