Cody

Solution 1673418

Submitted on 14 Nov 2018
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
fn='interp1.m'; y=Cody_size(fn); y_expected=2218; assert(isequal(y,y_expected))

Undefined function 'calculateSize' for input arguments of type 'char'. Error in Cody_size (line 2) y = calculateSize(fn); Error in Test1 (line 2) y=Cody_size(fn);

2   Fail
fn='Cody_size.m'; y=Cody_size(fn); t = mtree(fn,'-file'); y_expected = length(t.nodesize); assert(isequal(y,y_expected))

Undefined function 'calculateSize' for input arguments of type 'char'. Error in Cody_size (line 2) y = calculateSize(fn); Error in Test2 (line 2) y=Cody_size(fn);

3   Fail
fn='polyarea.m'; y=Cody_size(fn); y_expected=196; assert(isequal(y,y_expected))

Undefined function 'calculateSize' for input arguments of type 'char'. Error in Cody_size (line 2) y = calculateSize(fn); Error in Test3 (line 2) y=Cody_size(fn);