X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=examples%2Fcompress.cl;h=1ef513db8adde6bf4ae8d5ff595159db9a56fe52;hb=baabff1a8dbf4813072d87f6977cd488c376fe56;hp=7787b69939d001a512ecc31684d69426eb93c3e7;hpb=40314c219af7f3c1117836a66f4028a52704437d;p=uffi.git diff --git a/examples/compress.cl b/examples/compress.cl index 7787b69..1ef513d 100644 --- a/examples/compress.cl +++ b/examples/compress.cl @@ -9,7 +9,7 @@ ;;;; ;;;; Copyright (c) 2002 Kevin M. Rosenberg ;;;; -;;;; $Id: compress.cl,v 1.2 2002/03/09 21:19:31 kevin Exp $ +;;;; $Id: compress.cl,v 1.3 2002/03/10 04:15:33 kevin Exp $ ;;;; ;;;; This file is part of UFFI. ;;;; @@ -64,3 +64,11 @@ (uffi:free-foreign-object dest))))))) +#+test-uffi +(progn + (flet ((print-results (str) + (multiple-value-bind (compressed len) (compress str) + (format t "~&(compress ~S) => ~S,~D" str compressed len)))) + (print-results "") + (print-results "test") + (print-results "test2")))