I don't quite understand what extra piece this is asking for. Could someone explain a bit more explicitly? I have test 1 correct, but test 2 failed.
It's difficult to give much of a hint without giving away the answer. The key is that your function needs to be able to accept ANY input.
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))
|
451 Solvers
367 Solvers
How long is the longest prime diagonal?
280 Solvers
Replace multiples of 5 with NaN
282 Solvers
443 Solvers