Cody

Solution 2184618

Submitted on 31 Mar 2020
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
x= '2015-05-26'; y_correct = 220; assert(isequal(Days2NYE(x),y_correct))

x1 = '2015-12-31' y = 219

Assertion failed.

2   Fail
x = '2015-12-30'; y_correct = 2; assert(isequal(Days2NYE(x),y_correct))

x1 = '2015-12-31' y = 1

Assertion failed.

3   Fail
x = '2014-05-26 10:15:45'; y_correct = 219; assert(isequal(Days2NYE(x),y_correct))

x1 = '2014-12-31' y = 218.5724

Assertion failed.

4   Fail
x = '2014-12-31 10:15:45'; y_correct = 0; assert(isequal(Days2NYE(x),y_correct))

x1 = '2014-12-31' y = -0.4276

Assertion failed.