|
@ -194,7 +194,7 @@ void test_validName(void) |
|
|
{ |
|
|
{ |
|
|
/*Arrange*/ |
|
|
/*Arrange*/ |
|
|
|
|
|
|
|
|
char* validNames[] = {"John","Jane","Fizz","Foo","Atharva","Can","Julius","Haytham","Mohamed","Shivam"}; |
|
|
|
|
|
|
|
|
char* validNames[] = {"John","Jane","Fizz","Fooo","Atharva","Cahn","Julius","Haytham","Mohamed","Shivam"}; |
|
|
int minimalLength = 4; |
|
|
int minimalLength = 4; |
|
|
bool validNamesResult[10]; |
|
|
bool validNamesResult[10]; |
|
|
|
|
|
|
|
@ -209,7 +209,7 @@ void test_validName(void) |
|
|
|
|
|
|
|
|
for(int i = 0;i<10;i++) |
|
|
for(int i = 0;i<10;i++) |
|
|
{ |
|
|
{ |
|
|
TEST_ASSERT_TRUE(validNames[i]); |
|
|
|
|
|
|
|
|
TEST_ASSERT_TRUE(validNamesResult[i]); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
@ -218,7 +218,7 @@ void test_invalidName(void) |
|
|
{ |
|
|
{ |
|
|
/*Arrange*/ |
|
|
/*Arrange*/ |
|
|
|
|
|
|
|
|
char* invalidNames[] = {"Jo hn","Jane.","Fizz36","Foo8","Ath,arva","C .a1n","Jul132ius","123Haytham",".Mohamed"," Shivam"}; |
|
|
|
|
|
|
|
|
char* invalidNames[] = {"Jo hn","Jane.","Fizz36","Foo8","Ath,arva","C .a1n","Jul.3ius","H613 aytham","Moh35gta.med","S-+h ivam"}; |
|
|
int minimalLength = 4; |
|
|
int minimalLength = 4; |
|
|
bool invalidNamesResult[10]; |
|
|
bool invalidNamesResult[10]; |
|
|
|
|
|
|
|
|