X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fgettime.cl;fp=tests%2Fgettime.cl;h=c562fade74e514648dace5c253ed1d531a32c08c;hb=acdc714a0b8ea9c0df0c9ffc56699fa010bd549e;hp=9158b0fe34bc5f3dafa52ecfe658099f46852942;hpb=c49c694169461e9e53659280deb3e65785c0bd12;p=uffi.git diff --git a/tests/gettime.cl b/tests/gettime.cl index 9158b0f..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.8 2002/04/02 21:29:45 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 ;;;; @@ -65,4 +65,12 @@ #+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"))) +