This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 'I played piano. John played football. Anita went home. Are you safe?';
y = {'I played piano.' 'Anita went home.' 'Are you safe?'};
assert(isequal(lazy(x),y))
[Warning: Function isequal 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 lazy (line 2)
In ScoringEngineTestPoint1 (line 3)
In solutionTest (line 3)]
|
2 | Pass |
x = 'Are you okay? Who are you? Olga will call you. Sam saw me.';
y = {'Olga will call you.'};
assert(isequal(lazy(x),y))
[Warning: Function isequal 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 lazy (line 2)
In ScoringEngineTestPoint2 (line 3)
In solutionTest (line 5)]
|
3 | Pass |
x = 'One is more. Than what? No it''s not. But why? Angela said so.';
y = {'One is more.' 'Angela said so.'};
assert(isequal(lazy(x),y))
[Warning: Function isequal 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 lazy (line 2)
In ScoringEngineTestPoint3 (line 3)
In solutionTest (line 7)]
|
4 | Pass |
x = 'One plus two. Is four. No, that''t not right. It''s three.';
y = {'One plus two.' 'It''s three.'};
assert(isequal(lazy(x),y))
[Warning: Function isequal 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 lazy (line 2)
In ScoringEngineTestPoint4 (line 3)
In solutionTest (line 9)]
|
5 | Pass |
x = 'I went home. After the game. It was sad. It was lame. It was great!';
y = {'I went home.' 'After the game.' 'It was lame.'};
assert(isequal(lazy(x),y))
[Warning: Function isequal 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 lazy (line 2)
In ScoringEngineTestPoint5 (line 3)
In solutionTest (line 11)]
|
6 | Pass |
x = 'One, two, three. Climb the tree. Four, five, six. It''s not here. Eight and nine. That''s fine.';
y = {'One, two, three.' 'It''s not here.' 'Eight and nine.'};
assert(isequal(lazy(x),y))
[Warning: Function isequal 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 lazy (line 2)
In ScoringEngineTestPoint6 (line 3)
In solutionTest (line 13)]
|
7 | Pass |
x = 'Either one is fine. Why? Because he said so.';
y = {'Either one is fine.'};
assert(isequal(lazy(x),y))
[Warning: Function isequal 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 lazy (line 2)
In ScoringEngineTestPoint7 (line 3)
In solutionTest (line 15)]
|
7277 Solvers
960 Solvers
415 Solvers
Back to basics 20 - singleton dimensions
225 Solvers
273 Solvers