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

Loading…
Cancel
Save