Cody

Solution 1845723

Submitted on 11 Jun 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
x1 = '15-jan-2000'; x2 = '24-may-2012'; y_correct = 4513; assert(isequal(countDays(x1,x2),y_correct))

Undefined function 'daysact' for input arguments of type 'char'. Error in countDays (line 2) y = daysact(x1,x2); Error in Test1 (line 4) assert(isequal(countDays(x1,x2),y_correct))

2   Fail
x1 = '15-jan-1000'; x2 = '24-may-2012'; y_correct = 369755; assert(isequal(countDays(x1,x2),y_correct))

Undefined function 'daysact' for input arguments of type 'char'. Error in countDays (line 2) y = daysact(x1,x2); Error in Test2 (line 4) assert(isequal(countDays(x1,x2),y_correct))

3   Fail
x1 = '24-may-2013'; x2 = '24-may-2012'; y_correct = 365; assert(isequal(countDays(x1,x2),y_correct))

Undefined function 'daysact' for input arguments of type 'char'. Error in countDays (line 2) y = daysact(x1,x2); Error in Test3 (line 4) assert(isequal(countDays(x1,x2),y_correct))