In test suit in two cases you showed but answer 'yes' not working
You need to make sure that the function can handle multiple inputs. It really goes to show you that you can't just accept what is given to you as is!
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 'You want to go shopping with me, right?';
y_correct = 'yes';
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: Too many input arguments.
|
Back to basics 3 - Temp Directory
277 Solvers
Back to basics 18 - justification
150 Solvers
214 Solvers
322 Solvers
250 Solvers