changeset 7969:4f9e8eeb2059

datestr: new xtest
author John W. Eaton <jwe@octave.org>
date Thu, 24 Jul 2008 09:25:11 -0400
parents 0d607e8dbbfa
children b6d4c644b4b6
files scripts/ChangeLog scripts/time/datestr.m
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@
+2008-07-24  Ben Abbott  <bpabbott@mac.com>
+
+	* time/datestr.m: New xtest.
+
 2008-07-21  Michael Goffioul  <michael.goffioul@gmail.com>
 
 	* plot/closereq.m: Use first gcbf to get the handle of the figure to
--- 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"])