r1724: *** empty log message ***
[uffi.git] / examples / strtol.cl
index 4d3a090f658f32442922127b01e334c41e33c1a1..32c5c42e1bfd836a54595db210d5e7b9d7337c6f 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Feb 2002
 ;;;;
-;;;; $Id: strtol.cl,v 1.13 2002/04/02 21:29:45 kevin Exp $
+;;;; $Id: strtol.cl,v 1.15 2002/04/02 23:27:05 kevin Exp $
 ;;;;
 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -68,3 +68,16 @@ of first non-valid character"
     (print-results "55.3")
     (print-results "a")))
 
+#+test-uffi
+(progn
+  (flet ((test-strtol (str results)
+          (util.test:test (multiple-value-list (strtol str)) results
+                          :test #'equal
+                          :fail-info "Error testing strtol")))
+    (test-strtol "123" '(123 t))
+    (test-strtol "0" '(0 t))
+    (test-strtol "55a" '(55 2))
+    (test-strtol "a" '(nil nil))))
+
+                          
+