Cody

Solution 1995097

Submitted on 29 Oct 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
a = 'first'; b = 'second'; y_correct = [1,2]; [first,second] = Test(a,b); assert(isequal([first,second],y_correct))

l = 1×7 cell array {'first'} {'second'} {'third'} {'fourth'} {'laladoestmatter'} {'sixth'} {'seventh'} ans = 1×7 logical array 1 0 0 0 0 0 0 ans = 1×7 logical array 0 1 0 0 0 0 0

One or more output arguments not assigned during call to "varargout". Error in Test1 (line 4) [first,second] = Test(a,b);

2   Fail
a = 'first'; b = 'second'; c = 'third'; y_correct = [1,2,3]; [first,second,third] = Test(a,b,c); assert(isequal([first,second,third],y_correct))

l = 1×7 cell array {'first'} {'second'} {'third'} {'fourth'} {'laladoestmatter'} {'sixth'} {'seventh'} ans = 1×7 logical array 1 0 0 0 0 0 0 ans = 1×7 logical array 0 1 0 0 0 0 0 ans = 1×7 logical array 0 0 1 0 0 0 0

One or more output arguments not assigned during call to "varargout". Error in Test2 (line 5) [first,second,third] = Test(a,b,c);

3   Fail
a = 'first'; b = 'second'; c = 'third'; y_correct = [2,3,1]; [first,second,third] = Test(b,c,a); assert(isequal([first,second,third],y_correct))

l = 1×7 cell array {'first'} {'second'} {'third'} {'fourth'} {'laladoestmatter'} {'sixth'} {'seventh'} ans = 1×7 logical array 0 1 0 0 0 0 0 ans = 1×7 logical array 0 0 1 0 0 0 0 ans = 1×7 logical array 1 0 0 0 0 0 0

One or more output arguments not assigned during call to "varargout". Error in Test3 (line 5) [first,second,third] = Test(b,c,a);

4   Fail
a = 'first'; b = 'second'; c = 'third'; y_correct = [3,1,2]; [first,second,third] = Test(c,a,b); assert(isequal([first,second,third],y_correct))

l = 1×7 cell array {'first'} {'second'} {'third'} {'fourth'} {'laladoestmatter'} {'sixth'} {'seventh'} ans = 1×7 logical array 0 0 1 0 0 0 0 ans = 1×7 logical array 1 0 0 0 0 0 0 ans = 1×7 logical array 0 1 0 0 0 0 0

One or more output arguments not assigned during call to "varargout". Error in Test4 (line 5) [first,second,third] = Test(c,a,b);

5   Fail
a = 'first'; b = 'fourth'; c = 'sixth'; y_correct = [1,4,6]; [first,second,third] = Test(a,b,c); assert(isequal([first,second,third],y_correct))

l = 1×7 cell array {'first'} {'second'} {'third'} {'fourth'} {'laladoestmatter'} {'sixth'} {'seventh'} ans = 1×7 logical array 1 0 0 0 0 0 0 ans = 1×7 logical array 0 0 0 1 0 0 0 ans = 1×7 logical array 0 0 0 0 0 1 0

One or more output arguments not assigned during call to "varargout". Error in Test5 (line 5) [first,second,third] = Test(a,b,c);

6   Fail
a = 'seventh'; y_correct = 7; [first] = Test(a); assert(isequal(first,y_correct))

l = 1×7 cell array {'first'} {'second'} {'third'} {'fourth'} {'laladoestmatter'} {'sixth'} {'seventh'} ans = 1×7 logical array 0 0 0 0 0 0 1

One or more output arguments not assigned during call to "varargout". Error in Test6 (line 3) [first] = Test(a);