X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fc-test-fns.cl;h=589d56433bb48a2131abbe8a66a251f5d599b707;hb=acdc714a0b8ea9c0df0c9ffc56699fa010bd549e;hp=1bedef93abaa7d247e68217adb2586f69567cb1d;hpb=c49c694169461e9e53659280deb3e65785c0bd12;p=uffi.git diff --git a/tests/c-test-fns.cl b/tests/c-test-fns.cl index 1bedef9..589d564 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.6 2002/04/02 23:27:05 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") + (length "THIS IS A TEST") + :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.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5) + :test #'equal + :fail-info "Error comparing half-double-vector") + )