Cody

Solution 1205175

Submitted on 5 Jun 2017 by Augusto Mazzei
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
s1 = 'He said ''Look over there!'''; s2_correct = 'He said ''''Look over there!'''''; assert(isequal(quote_doubler(s1),s2_correct))

s2 = 72 s2 = 72 101 s2 = 72 101 32 s2 = 72 101 32 115 s2 = 72 101 32 115 97 s2 = 72 101 32 115 97 105 s2 = 72 101 32 115 97 105 100 s2 = 72 101 32 115 97 105 100 32 s2 = 'He said ''L' s2 = 'He said ''Lo' s2 = 'He said ''Loo' s2 = 'He said ''Look' s2 = 'He said ''Look ' s2 = 'He said ''Look o' s2 = 'He said ''Look ov' s2 = 'He said ''Look ove' s2 = 'He said ''Look over' s2 = 'He said ''Look over ' s2 = 'He said ''Look over t' s2 = 'He said ''Look over th' s2 = 'He said ''Look over the' s2 = 'He said ''Look over ther' s2 = 'He said ''Look over there' s2 = 'He said ''Look over there!'

2   Pass
s1 = ''''; s2_correct = ''''''; assert(isequal(quote_doubler(s1),s2_correct))