X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fc-test-fns.cl;h=0bdb90fda7ec735b10a285c882e225bb8c05a12c;hb=d596034b6a258cc97f32c33508079db469c8af2a;hp=1bedef93abaa7d247e68217adb2586f69567cb1d;hpb=29dc3a388a41590a7fda00cb6b606ffe03b3c3d6;p=uffi.git diff --git a/tests/c-test-fns.cl b/tests/c-test-fns.cl index 1bedef9..0bdb90f 100644 --- a/tests/c-test-fns.cl +++ b/tests/c-test-fns.cl @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Mar 2002 ;;;; -;;;; $Id: c-test-fns.cl,v 1.5 2002/04/02 21:29:45 kevin Exp $ +;;;; $Id: c-test-fns.cl,v 1.7 2002/04/03 00:31:32 kevin Exp $ ;;;; ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -96,3 +96,26 @@ #+examples-uffi (format t "~&Half vector: ~S" (test-half-double-vector)) + + +#+test-uffi +(progn + (util.test:test (string= (string-to-upper "this is a test") "THIS IS A TEST") + t + :test #'eql + :fail-info "Error with string-to-upper") + (util.test:test (string-to-upper nil) nil + :fail-info "string-to-upper with nil failed") + (util.test:test (string-count-upper "This is a Test") + 2 + :test #'eql + :fail-info "Error with string-count-upper") + (util.test:test (string-count-upper nil) -1 + :test #'eql + :fail-info "string-count-upper with nil failed") + + (util.test:test (test-half-double-vector) + '(0.0d0 0.5d0 1.0d0 1.5d0 2.0d0 2.5d0 3.0d0 3.5d0 4.0d0 4.5d0) + :test #'equal + :fail-info "Error comparing half-double-vector") + )