Cody

Solution 1831802

Submitted on 30 May 2019 by William
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x ='ilove@cody.math'; correct_answer = true; assert(isequal(ismail(x),correct_answer))

2   Pass
x ='goc3@kjkjhedfqoishdoifqjsdjvkshiufghiorhoihfoiqphsoihqohfoiqhpsoiffvhnqokshfvoiqhdshfoviqhskfhvoqisdhfvqshoifvhqosidfvioqsfdivhqsoifdvghjqsiofvqoisjoivqhsoifhvqshfvhqsfhvqklsffnvkqsjdfnvqksjfnvqklfdshvqkslvjklqskvlqjslvkqsnvqklsdfvklqsdfvjnqkldfsvkqklvjqfvklqdjf.dz'; correct_answer = false; assert(isequal(ismail(x),correct_answer))

3   Pass
x ='goc3@kjkjhedfqoishdoifqjsdjvkshiufghiorhoihfoiqphsoihqohfoiqhpsoiffvhnqokshfvoiqhdshfoviqhskfhvoqisdhfvqshoifvhqosidfvioqsfdivhqsoifdvghjqsiofvqoisjoivqhsoifhvqshfvhqsfhvqklsffnvkqsjdfnvqksjfnvqklfdshvqksl@vjklqskvlqjslvkqsnvqklsdfvklqsdfvjnqkld.dz'; correct_answer = false; assert(isequal(ismail(x),correct_answer))

4   Pass
x ='goc3@kjkjhedfqoishdoifqjsdjvkshiufghiorhoihfoiqphsoihqohfoiqhpsoiffvhnqokshfvoiqhdshfoviqhskfhvoqisdhfvqshoifvhqosidfvioqsfdivhqsoifdvg hjqsiofvqoisjoivqhsoifhvqshfvhqsfhvqklsffnvkqsjdfnvqksjfnvqklfdshvqkslvjklqskvlqjslvkqsnvqklsdfvklqsdfvjnqkld.dz'; correct_answer = true; assert(isequal(ismail(x),correct_answer))

5   Pass
x =1223; correct_answer = false; assert(isequal(ismail(x),correct_answer))

6   Pass
x ='123@mathworks.com'; correct_answer = false; assert(isequal(ismail(x),correct_answer))

7   Pass
x ='james@mathworks@com'; correct_answer = false; assert(isequal(ismail(x),correct_answer))

8   Pass
x ='james@mathworks@com'; correct_answer = false; assert(isequal(ismail(x),correct_answer))

9   Pass
x ='msila@tarmount.com'; correct_answer = true; assert(isequal(ismail(x),correct_answer))

10   Pass
x ='ssssss@m@thworks.xyz'; correct_answer = false; assert(isequal(ismail(x),correct_answer))

11   Pass
x ='mes@rym.co.uk'; correct_answer = true; assert(isequal(ismail(x),correct_answer))

12   Pass
x ='abc?!@bro.tr..dz'; correct_answer = false; assert(isequal(ismail(x),correct_answer))

13   Pass
x ='abcd@?ml?club'; correct_answer = false; assert(isequal(ismail(x),correct_answer))

14   Pass
x ='abcd@3.141592653589793238462643383279502884197169399375105820974944592.com'; correct_answer = true; assert(isequal(ismail(x),correct_answer))

15   Pass
x ='info@thelongestdomainnameintheworldandthensomeandthensomemoreandmore.com'; correct_answer = true; assert(isequal(ismail(x),correct_answer))

16   Pass
x ='info@thelongestdomainnameintheworld andthensomeandthensomemoreandmore.com'; correct_answer = false; assert(isequal(ismail(x),correct_answer))

17   Pass
x ='inf o@thelongestdomainnameintheworld andthensomeandthensomemoreandmore.com'; correct_answer = false; assert(isequal(ismail(x),correct_answer))