r1723: *** empty log message ***
[uffi.git] / tests / c-test-fns.cl
index 1bedef93abaa7d247e68217adb2586f69567cb1d..589d56433bb48a2131abbe8a66a251f5d599b707 100644 (file)
@@ -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
 ;;;;
 #+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")
+  )