Cody

Solution 1437624

Submitted on 9 Feb 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
D = '5-Jan-2018'; y_correct = 1; assert(isequal(Fri(D),y_correct))

Undefined function 'day' for input arguments of type 'char'. Error in Fri (line 2) d = day(D,'name'); Error in Test1 (line 3) assert(isequal(Fri(D),y_correct))

2   Fail
D = '09/09/2019'; y_correct = 0; assert(isequal(Fri(D),y_correct))

Undefined function 'day' for input arguments of type 'char'. Error in Fri (line 2) d = day(D,'name'); Error in Test2 (line 3) assert(isequal(Fri(D),y_correct))

3   Fail
D = '2000-01-01'; y_correct = 0; assert(isequal(Fri(D),y_correct))

Undefined function 'day' for input arguments of type 'char'. Error in Fri (line 2) d = day(D,'name'); Error in Test3 (line 3) assert(isequal(Fri(D),y_correct))

4   Fail
D = '2020-12-25'; y_correct = 1; assert(isequal(Fri(D),y_correct))

Undefined function 'day' for input arguments of type 'char'. Error in Fri (line 2) d = day(D,'name'); Error in Test4 (line 3) assert(isequal(Fri(D),y_correct))