Cody

Solution 1585291

Submitted on 17 Jul 2018
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   Fail
x ='goc3@kjkjhedfqoishdoifqjsdjvkshiufghiorhoihfoiqphsoihqohfoiqhpsoiffvhnqokshfvoiqhdshfoviqhskfhvoqisdhfvqshoifvhqosidfvioqsfdivhqsoifdvghjqsiofvqoisjoivqhsoifhvqshfvhqsfhvqklsffnvkqsjdfnvqksjfnvqklfdshvqkslvjklqskvlqjslvkqsnvqklsdfvklqsdfvjnqkldfsvkqklvjqfvklqdjf.dz'; correct_answer = false; assert(isequal(ismail(x),correct_answer))

Assertion failed.

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

Assertion failed.

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

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

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

Assertion failed.

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

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

Assertion failed.

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

Assertion failed.

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   Fail
x ='info@thelongestdomainnameintheworld andthensomeandthensomemoreandmore.com'; correct_answer = false; assert(isequal(ismail(x),correct_answer))

Assertion failed.

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

Assertion failed.