Cody

Solution 2059850

Submitted on 16 Dec 2019 by Asif Newaz
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 = ['Lets' 'play' 'a' 'game']; s='q' y_correct = '?'; assert(isequal(IsItTrue(x,s),y_correct))

s = 'q' [Warning: Escaped character '\w' is not valid. See 'doc sprintf' for supported special characters.] [> In IsItTrue (line 2) In ScoringEngineTestPoint1 (line 4) In solutionTest (line 3)]

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

s = 'l' [Warning: Escaped character '\w' is not valid. See 'doc sprintf' for supported special characters.] [> In IsItTrue (line 2) In ScoringEngineTestPoint2 (line 4) In solutionTest (line 5)]

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

s = '?' [Warning: Escaped character '\w' is not valid. See 'doc sprintf' for supported special characters.] [> In IsItTrue (line 2) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)]