Solution 1857192

Submitted on 25 Jun 2019 by Marcell Jozsa
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 = '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))

text = 'I played piano' text = 'John played football' text = 'Anita went home' text = 'Are you safe'

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))

text = 'Are you okay' text = 'Who are you' text = 'Olga will call you' text = 'Sam saw me'

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))

text = 'One is more' text = 'Than what' text = 'No it's not' text = 'But why' text = 'Angela said so'

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))

text = 'One plus two' text = 'Is four' text = 'No, that't not right' text = 'It's three'

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))

text = 'I went home' text = 'After the game' text = 'It was sad' text = 'It was lame' text = 'It was great'

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))

text = 'One, two, three' text = 'Climb the tree' text = 'Four, five, six' text = 'It's not here' text = 'Eight and nine' text = 'That's fine'

7   Pass
x = 'Either one is fine. Why? Because he said so.'; y = {'Either one is fine.'}; assert(isequal(lazy(x),y))

text = 'Either one is fine' text = 'Why' text = 'Because he said so'