Cody

Problem 35. Quote Doubler

Solution 2675603

Submitted on 10 Jul 2020
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))

Output argument "s2" (and maybe others) not assigned during call to "quote_doubler". Error in Test1 (line 3) assert(isequal(quote_doubler(s1),s2_correct))

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

Output argument "s2" (and maybe others) not assigned during call to "quote_doubler". Error in Test2 (line 3) assert(isequal(quote_doubler(s1),s2_correct))

Suggested Problems

More from this Author95

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!