Cody

Solution 2005329

Submitted on 6 Nov 2019
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
a = 'xkayakyy'; p = 'kayak'; assert(isequal(p,pal(a)));

2   Fail
a = '3.141592653589793238462643383279502884197169399375105820974944592307816406286'; p = '46264'; assert(isequal(p,pal(a)));

Output argument "b" (and maybe others) not assigned during call to "pal". Error in Test2 (line 3) assert(isequal(p,pal(a)));

3   Fail
a = 'truly I say: able was I ere I saw elba, but that is another story'; p = 'able was I ere I saw elba'; assert(isequal(p,pal(a)));

Output argument "b" (and maybe others) not assigned during call to "pal". Error in Test3 (line 3) assert(isequal(p,pal(a)));