X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fgettime.cl;h=c562fade74e514648dace5c253ed1d531a32c08c;hb=fe0f2741a3d8a9b74d7a7c4c5ff1e21143b15bb4;hp=69b2f07969dae55d025884f8fd1ae1f0b6af49bf;hpb=f73eb94e15649aba5fcfbe3a900aa72f31f46a96;p=uffi.git diff --git a/tests/gettime.cl b/tests/gettime.cl index 69b2f07..c562fad 100644 --- a/tests/gettime.cl +++ b/tests/gettime.cl @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: gettime.cl,v 1.7 2002/03/23 16:32:39 kevin Exp $ +;;;; $Id: gettime.cl,v 1.9 2002/04/02 23:27:05 kevin Exp $ ;;;; ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -62,7 +62,15 @@ -#+test-uffi +#+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"))) +