r1722: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 2 Apr 2002 22:10:22 +0000 (22:10 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 2 Apr 2002 22:10:22 +0000 (22:10 +0000)
examples/strtol.cl
tests/strtol.cl

index 4d3a090f658f32442922127b01e334c41e33c1a1..8255ce55d3de985e2b4db3b48c39ca21a89cd77f 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.14 2002/04/02 22:10:22 kevin Exp $
 ;;;;
 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -68,3 +68,15 @@ 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-function #'equal
+                          :fail-info "Error testing strtol")))
+    (test-strtol "55" '(55 t))
+    (test-strtol "55a" '(55 2))
+    (test-strtol "a" '(nil nil))))
+
+                          
+
index 4d3a090f658f32442922127b01e334c41e33c1a1..8255ce55d3de985e2b4db3b48c39ca21a89cd77f 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.14 2002/04/02 22:10:22 kevin Exp $
 ;;;;
 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -68,3 +68,15 @@ 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-function #'equal
+                          :fail-info "Error testing strtol")))
+    (test-strtol "55" '(55 t))
+    (test-strtol "55a" '(55 2))
+    (test-strtol "a" '(nil nil))))
+
+                          
+