Cody

Solution 1725161

Submitted on 12 Feb 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
TodayDate='28/11/2013' Today='Thursday' UnknownDay_Date='07/01/1991' y_correct = 'Monday'; assert(isequal(FindDay(TodayDate,Today,UnknownDay_Date),y_correct))

TodayDate = '28/11/2013' Today = 'Thursday' UnknownDay_Date = '07/01/1991' Today_date = 28 UnknowDay = "Thursday"

Output argument "UnknownDay" (and maybe others) not assigned during call to "FindDay". Error in Test1 (line 5) assert(isequal(FindDay(TodayDate,Today,UnknownDay_Date),y_correct))

2   Fail
TodayDate='20/07/1977' Today='Wednesday' UnknownDay_Date='26/01/1950' y_correct = 'Thursday'; assert(isequal(FindDay(TodayDate,Today,UnknownDay_Date),y_correct))

TodayDate = '20/07/1977' Today = 'Wednesday' UnknownDay_Date = '26/01/1950' Today_date = 20

Index exceeds array bounds. Error in FindDay (line 14) UnknownDay = Week(Today_index + Days_count) Error in Test2 (line 5) assert(isequal(FindDay(TodayDate,Today,UnknownDay_Date),y_correct))

3   Fail
TodayDate='16/04/2019' Today='Saturday' UnknownDay_Date='22/10/1901' y_correct = 'Saturday'; assert(isequal(FindDay(TodayDate,Today,UnknownDay_Date),y_correct))

TodayDate = '16/04/2019' Today = 'Saturday' UnknownDay_Date = '22/10/1901' Today_date = 16

Index exceeds array bounds. Error in FindDay (line 14) UnknownDay = Week(Today_index + Days_count) Error in Test3 (line 5) assert(isequal(FindDay(TodayDate,Today,UnknownDay_Date),y_correct))