Cody

Solution 1875683

Submitted on 16 Jul 2019
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   Fail
s1 = 'He said ''Look over there!'''; s2_correct = 'He said ''''Look over there!'''''; assert(isequal(quote_doubler(s1),s2_correct))

j = 1 s2 = 'H' s2 = 'e' s2 = ' ' s2 = 's' s2 = 'a' s2 = 'i' s2 = 'd' s2 = ' ' s2 = ''' s2 = '''' j = 2 s2 = ''L' s2 = ''o' s2 = ''o' s2 = ''k' s2 = '' ' s2 = ''o' s2 = ''v' s2 = ''e' s2 = ''r' s2 = '' ' s2 = ''t' s2 = ''h' s2 = ''e' s2 = ''r' s2 = ''e' s2 = ''!' s2 = '''' s2 = ''''' j = 3 s2 = '''''

Assertion failed.

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

j = 1 s2 = ''' s2 = '''' j = 2 s2 = ''''