Browse Source

refactoring: renamed some test functions

remotes/origin/conversionOfNumbers
Laurin 11 months ago
parent
commit
315547fddf
  1. 12
      test/conversionOfNumbers/test_conversionOfNumbers.c

12
test/conversionOfNumbers/test_conversionOfNumbers.c

@ -5,7 +5,7 @@
void setUp(){} void setUp(){}
void tearDown(){} void tearDown(){}
void test_convert2ToBinaryStr10(){
void test_convertNum2ToBinaryStr10(){
//arrange //arrange
char* result; char* result;
char expected[] = "10"; char expected[] = "10";
@ -42,7 +42,7 @@ void test_binaryStringLengthOfInput0is1(){
TEST_ASSERT_EQUAL_INT(expected, result); TEST_ASSERT_EQUAL_INT(expected, result);
} }
void test_convert10ToBinaryStr1010(){
void test_convertNum10ToBinaryStr1010(){
//arrange //arrange
char* result; char* result;
char expected[] = "1010"; char expected[] = "1010";
@ -67,7 +67,7 @@ void test_binaryStringLengthOfInputNegative10is5(){
TEST_ASSERT_EQUAL_INT(expected, result); TEST_ASSERT_EQUAL_INT(expected, result);
} }
void test_convertNegative12ToBinaryStrNegative1100(){
void test_convertNegativeNum12ToBinaryStrNegative1100(){
//arrange //arrange
char* result; char* result;
char expected[] = "-1100"; char expected[] = "-1100";
@ -116,7 +116,7 @@ void test_convertBinaryStr1001ToInt9(){
TEST_ASSERT_EQUAL_UINT(expected, result); TEST_ASSERT_EQUAL_UINT(expected, result);
} }
void test_convert3ToHexStr3(){
void test_convertNum3ToHexStr3(){
//arrange //arrange
char* result; char* result;
char expected[] = "3"; char expected[] = "3";
@ -129,7 +129,7 @@ void test_convert3ToHexStr3(){
free(result); free(result);
} }
void test_convert12ToHexStrC(){
void test_convertNum12ToHexStrC(){
//arrange //arrange
char* result; char* result;
char expected[] = "C"; char expected[] = "C";
@ -178,7 +178,7 @@ void test_hexStringLengthOfInput0is1(){
TEST_ASSERT_EQUAL_INT(expected, result); TEST_ASSERT_EQUAL_INT(expected, result);
} }
void test_convert234ToHexStrEA(){
void test_convertNum234ToHexStrEA(){
//arrange //arrange
char* result; char* result;
char expected[] = "EA"; char expected[] = "EA";

Loading…
Cancel
Save