# HG changeset patch # User John W. Eaton # Date 1216905911 14400 # Node ID 4f9e8eeb2059cf6d20e821958233d4e773ef4cff # Parent 0d607e8dbbfa28b86b0706efba8f2d00341d85a5 datestr: new xtest diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2008-07-24 Ben Abbott + + * time/datestr.m: New xtest. + 2008-07-21 Michael Goffioul * plot/closereq.m: Use first gcbf to get the handle of the figure to diff --git a/scripts/time/datestr.m b/scripts/time/datestr.m --- a/scripts/time/datestr.m +++ b/scripts/time/datestr.m @@ -341,6 +341,7 @@ %!assert(datestr(testtime,29),"20051218"); %!assert(datestr(testtime,30),"20051218T023317"); %!assert(datestr(testtime,31),"2005-12-18 02:33:17"); +%!xtest assert(datestr(testtime+[0 0 3 0 0 0],"dddd"),"Wednesday") ## avoid the bug where someone happens to give a vector of datenums that ## happens to be 6 wide %!assert(datestr(733452.933:733457.933), ["14-Feb-2008 22:23:31";"15-Feb-2008 22:23:31";"16-Feb-2008 22:23:31";"17-Feb-2008 22:23:31";"18-Feb-2008 22:23:31";"19-Feb-2008 22:23:31"])