Cody

Solution 1687310

Submitted on 6 Dec 2018 by test test
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 = 'Do you like your boss?'; y_correct = 'Any String!'; assert(isequal(isstr(YourBoss(x)),isstr(y_correct)))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In YourBoss (line 1) In ScoringEngineTestPoint1 (line 3) In solutionTest (line 3)]

2   Pass
x = 'Does your boss smell funny?'; y_correct = 'Any String!'; assert(isequal(isstr(YourBoss(x)),isstr(y_correct)))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In YourBoss (line 1) In ScoringEngineTestPoint2 (line 3) In solutionTest (line 5)]

3   Pass
x = 'Is your boss a man or a woman?'; y_correct = 'Any String!'; assert(isequal(isstr(YourBoss(x)),isstr(y_correct)))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In YourBoss (line 1) In ScoringEngineTestPoint3 (line 3) In solutionTest (line 7)]

4   Pass
x = 'Is your boss mean or nice?'; y_correct = 'Any String!'; assert(isequal(isstr(YourBoss(x)),isstr(y_correct)))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In YourBoss (line 1) In ScoringEngineTestPoint4 (line 3) In solutionTest (line 9)]

5   Pass
x = 'Do you see your boss often?'; y_correct = 'Any String!'; assert(isequal(isstr(YourBoss(x)),isstr(y_correct)))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In YourBoss (line 1) In ScoringEngineTestPoint5 (line 3) In solutionTest (line 11)]

6   Pass
x = 'If your boss were an animal, what type of animal would he or she be?'; y_correct = 'Any String!'; assert(isequal(isstr(YourBoss(x)),isstr(y_correct)))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In YourBoss (line 1) In ScoringEngineTestPoint6 (line 3) In solutionTest (line 13)]

7   Pass
x = 'On a scale from one to ten, where does your boss rank?'; y_correct = 'Any String!'; assert(isequal(isstr(YourBoss(x)),isstr(y_correct)))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In YourBoss (line 1) In ScoringEngineTestPoint7 (line 3) In solutionTest (line 15)]

8   Pass
x = 'Maybe you are your own boss...'; y_correct = 'Any String!'; assert(isequal(isstr(YourBoss(x)),isstr(y_correct)))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In YourBoss (line 1) In ScoringEngineTestPoint8 (line 3) In solutionTest (line 17)]

9   Pass
x = 'Maybe your boss is standing behind you, with that glare on his face, tapping his foot with his arms folded...'; y_correct = 'Any String!'; assert(isequal(isstr(YourBoss(x)),isstr(y_correct)))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In YourBoss (line 1) In ScoringEngineTestPoint9 (line 3) In solutionTest (line 19)]

Suggested Problems

More from this Author17