Cody

Solution 1534479

Submitted on 19 May 2018 by J. S. Kowontan
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   Pass
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' [Warning: Successfully read the date/time text using the format 'MM/dd/uuuu', but their format is ambiguous and could also be 'dd/MM/uuuu'. Specify a format character vector to avoid ambiguity.] [> In guessFormat (line 66) In datetime (line 612) In FindDay (line 2) In ScoringEngineTestPoint1 (line 5) In solutionTest (line 3)]

2   Pass
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'

3   Pass
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'