Cody

Solution 1443049

Submitted on 17 Feb 2018 by Jay
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))

ans = 'H' ans = 'e' ans = ' ' ans = 's' ans = 'a' ans = 'i' ans = 'd' ans = ' ' ans = ''' ans = 'L' ans = 'o' ans = 'o' ans = 'k' ans = ' ' ans = 'o' ans = 'v' ans = 'e' ans = 'r' ans = ' ' ans = 't' ans = 'h' ans = 'e' ans = 'r' ans = 'e' ans = '!' ans = '''

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

ans = '''