Cody

Solution 1886706

Submitted on 29 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
x1 = 'a'; x2= 'b'; y_correct = 'ab'; assert(isequal(concatstrings(x1,x2),y_correct))

varargin = 1×2 cell array {'a'} {'b'}

Output argument "ans" (and maybe others) not assigned during call to "concatstrings". Error in Test1 (line 4) assert(isequal(concatstrings(x1,x2),y_correct))

2   Fail
x1 = 'a'; x2= 'b'; x3= 'c'; y_correct = 'abc'; assert(isequal(concatstrings(x1,x2,x3),y_correct))

varargin = 1×3 cell array {'a'} {'b'} {'c'}

Output argument "ans" (and maybe others) not assigned during call to "concatstrings". Error in Test2 (line 5) assert(isequal(concatstrings(x1,x2,x3),y_correct))

3   Fail
x1 = 'my'; x2= ' '; x3= 'holiday'; x4= ' '; x5= 'is'; x6= ' almost over!'; y_correct = 'my holiday is almost over!'; assert(isequal(concatstrings(x1,x2,x3,x4,x5,x6),y_correct))

varargin = 1×6 cell array {'my'} {' '} {'holiday'} {' '} {'is'} {' almost over!'}

Output argument "ans" (and maybe others) not assigned during call to "concatstrings". Error in Test3 (line 8) assert(isequal(concatstrings(x1,x2,x3,x4,x5,x6),y_correct))

4   Fail
assert(isempty(concatstrings()))

varargin = 0×0 empty cell array

Output argument "ans" (and maybe others) not assigned during call to "concatstrings". Error in Test4 (line 1) assert(isempty(concatstrings()))