projects
/
uffi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r1917: *** empty log message ***
[uffi.git]
/
examples
/
gettime.cl
diff --git
a/examples/gettime.cl
b/examples/gettime.cl
index 9158b0fe34bc5f3dafa52ecfe658099f46852942..c562fade74e514648dace5c253ed1d531a32c08c 100644
(file)
--- a/
examples/gettime.cl
+++ b/
examples/gettime.cl
@@
-7,7
+7,7
@@
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: gettime.cl,v 1.
8 2002/04/02 21:29:4
5 kevin Exp $
+;;;; $Id: gettime.cl,v 1.
9 2002/04/02 23:27:0
5 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
@@
-65,4
+65,12
@@
#+examples-uffi
(format t "~&~A" (gettime))
#+examples-uffi
(format t "~&~A" (gettime))
+#+test-uffi
+(progn
+ (let ((time (gettime)))
+ (util.test:test (stringp time) t :fail-info "Time is not a string")
+ (util.test:test (plusp (parse-integer time :junk-allowed t))
+ t
+ :fail-info "time string does not start with a number")))
+