diff --git a/test/test_Error.c b/test/test_Error.c index d2aef22..036ac24 100644 --- a/test/test_Error.c +++ b/test/test_Error.c @@ -15,10 +15,22 @@ void test_error() int invalidErrorCodes_1[bound]; int invalidErrorCodesLarge_2[bound]; int invalidErrorCodesLargest_3[bound]; - + int validErrorCodeUnsuccessfulLogin[bound]; int validErrorCodeMaximumNumberOfAttempts[bound]; int validErrorCodeNoMenuEntryForNumber[bound]; + /*new test cases*/ + int validErrorCodeNoCustomerDataFile[bound]; + int validErrorCodeTooYoung[bound]; + int validErrorCodeCreatingFile[bound]; + int validErrorCodeForenameTooLong[bound]; + int validErrorCodeSurnameTooLong[bound]; + int validErrorCodePasswordTooLong[bound]; + + int validErrorCodeInvalidCharacterForename[bound]; + int validErrorCodeInvalidCharacterSurname[bound]; + int validErrorCodeTooManyDigits[bound]; + for(int i=0;i