#include #include #include #include "../src/error.c" void setUp(){} void tearDown(){} void test_error() { /*arrange*/ srand(time(0)); int bound = 1000; 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