Cody

Problem 158. Is my wife right? Now with even more wrong husband

Solution 1090936

Submitted on 27 Dec 2016
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 = 'You want to go shopping with me, right?'; y_correct = 'yes'; assert(isequal(wiferightagain(x),y_correct))

Out of memory. The likely cause is an infinite recursion within the program. Error in wiferightagain (line 3) assert(isequal(wiferightagain(x),y_correct))

2   Fail
ready = 'Will you be ready soon?'; when_she_said = 'In a couple minutes'; when_really = 'An hour if you''re lucky'; y_correct = 'yes'; assert(isequal(wiferightagain(ready,when_she_said,when_really),y_correct))

Error using wiferightagain Too many input arguments. Error in TestPoint2 (line 5) assert(isequal(wiferightagain(ready,when_she_said,when_really),y_correct))

Suggested Problems

More from this Author23

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!