Cody

Solution 1995111

Submitted on 29 Oct 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   Fail
x = ['Lets' 'play' 'a' 'game']; s='q' y_correct = '?'; assert(isequal(IsItTrue(x,s),y_correct))

s = 'q' ans = logical 0

Output argument "y" (and maybe others) not assigned during call to "IsItTrue". Error in Test1 (line 4) assert(isequal(IsItTrue(x,s),y_correct))

2   Fail
x = ['Lets' 'play' 'a' 'game']; s='l' y_correct = '!'; assert(isequal(IsItTrue(x,s),y_correct))

s = 'l' ans = logical 1

Output argument "y" (and maybe others) not assigned during call to "IsItTrue". Error in Test2 (line 4) assert(isequal(IsItTrue(x,s),y_correct))

3   Fail
x = ['Lets' 'play' 'a' 'game']; s='?' y_correct = '?'; assert(isequal(IsItTrue(x,s),y_correct))

s = '?' ans = logical 0

Output argument "y" (and maybe others) not assigned during call to "IsItTrue". Error in Test3 (line 4) assert(isequal(IsItTrue(x,s),y_correct))