Cody

Solution 452586

Submitted on 9 Jun 2014 by Jon
  • Size: 29
  • This is the leading solution.
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
%% date = '13/09/2013'; y_correct = '13/09/2013'; assert(isequal(nextfri13(date),y_correct))

ans = 735490 ans = 13/09/2013

2   Pass
%% date = '15/09/2013'; y_correct = '13/12/2013'; assert(isequal(nextfri13(date),y_correct))

ans = 735492 ans = 13/12/2013

3   Pass
%% date = '17/12/2013'; y_correct = '13/06/2014'; assert(isequal(nextfri13(date),y_correct))

ans = 735585 ans = 13/06/2014