r1524: *** empty log message ***
[uffi.git] / tests / strtol.cl
index 3655dd0d62a5a226cd9a8b05c6b1df862162e33f..d813f1333173b416c20f976d76cfce96813caaf6 100644 (file)
@@ -9,7 +9,7 @@
 ;;;;
 ;;;; Copyright (c) 2002 Kevin M. Rosenberg
 ;;;;
-;;;; $Id: strtol.cl,v 1.2 2002/03/09 21:19:31 kevin Exp $
+;;;; $Id: strtol.cl,v 1.3 2002/03/10 04:15:33 kevin Exp $
 ;;;;
 ;;;; This file is part of UFFI. 
 ;;;;
@@ -63,3 +63,13 @@ of first non-valid character"
      (t
       (values value chars-parsed)))))
 
+
+#+test-uffi
+(progn
+  (flet ((print-results (str)
+          (multiple-value-bind (result flag) (strtol str)
+            (format t "~&(strtol ~S) => ~S,~S" str result flag))))
+    (print-results "55")
+    (print-results "55.3")
+    (print-results "a")))
+