Cody

Solution 1027177

Submitted on 22 Oct 2016
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
y=pascal(10)+1; assert(ismember('pascal',find_last_fcn()))

testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0'

Output argument "y" (and maybe others) not assigned during call to "find_last_fcn". Error in TestPoint1 (line 2) assert(ismember('pascal',find_last_fcn()))

2   Fail
a=magic(5); b=rot90(a); c=find_last_fcn(); assert(ismember('magic',c)) assert(ismember('rot90',c))

testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0'

Output argument "y" (and maybe others) not assigned during call to "find_last_fcn". Error in TestPoint2 (line 3) c=find_last_fcn();

3   Fail
a=magic(5); b=rot90(a); c=toeplitz(1:5); f=find_last_fcn; assert(ismember('rot90',f)) assert(ismember('magic',f)) assert(ismember('toeplitz',f))

testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0'

Output argument "y" (and maybe others) not assigned during call to "find_last_fcn". Error in TestPoint3 (line 4) f=find_last_fcn;

4   Fail
fliplr(rot90(magic(100))); find_last_fcn; assert(ismember('magic',ans)) assert(ismember('fliplr',ans)) assert(ismember('rot90',ans))

testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0'

Error using assert The condition input argument must be a scalar logical. Error in TestPoint4 (line 3) assert(ismember('magic',ans))

5   Fail
flipud(fliplr(rot90(magic(100)))); f=find_last_fcn(); assert(ismember('magic',f)) assert(ismember('rot90',f)) assert(ismember('fliplr',f)) assert(ismember('flipud',f))

testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0'

Output argument "y" (and maybe others) not assigned during call to "find_last_fcn". Error in TestPoint5 (line 2) f=find_last_fcn();

6   Fail
a=magic(10); find_last_fcn; g=find_last_fcn(); assert(ismember('magic',g)) assert(ismember('find_last_fcn',g))

testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0' testSuiteResults = struct with fields: score: '0'

Output argument "y" (and maybe others) not assigned during call to "find_last_fcn". Error in TestPoint6 (line 3) g=find_last_fcn();