Cody

Problem 44231. Is it a mail?

Solution 1251867

Submitted on 15 Aug 2017 by Chris Cleveland
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

ans = logical 1

2   Pass

ans = logical 0

3   Pass

ans = logical 0

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

5   Pass

6   Pass

ans = logical 0

7   Pass

ans = logical 0

8   Pass

ans = logical 0

9   Pass

ans = logical 1

10   Pass

ans = logical 0

11   Pass

ans = logical 1

12   Pass

ans = logical 0

13   Pass

ans = logical 0

14   Pass

ans = logical 1

15   Pass

ans = logical 1

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

ans = logical 0

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

ans = logical 0