diff scripts/time/asctime.m @ 7411:83a8781b529d

[project @ 2008-01-22 21:52:25 by jwe]
author jwe
date Tue, 22 Jan 2008 21:52:26 +0000
parents e8c94e473c68
children eb63fbe60fab
line wrap: on
line diff
--- a/scripts/time/asctime.m	Tue Jan 22 21:34:24 2008 +0000
+++ b/scripts/time/asctime.m	Tue Jan 22 21:52:26 2008 +0000
@@ -43,3 +43,12 @@
   endif
 
 endfunction
+
+%!test
+%! t = time ();
+%! assert(strcmp (asctime (localtime (t)), ctime (t)));
+
+%!error asctime ();
+
+%!error asctime (1, 2);
+