Allow DO / DO* to take bare symbols as vars.
[jscl.git] / tests / format.lisp
index a37ed09..a3eae9d 100644 (file)
@@ -6,3 +6,11 @@
 
 (test (string= "a
 a" (format nil "a~%a")))
+
+(test (string= "this is foo" (format nil "this is ~a" "foo")))
+(test (string= "this is foo" (format nil "this is ~A" "foo")))
+
+(test (string= "this is \"foo\"" (format nil "this is ~s" "foo")))
+(test (string= "this is \"foo\"" (format nil "this is ~S" "foo")))
+
+(test (string= "this is 2" (format nil "this is ~*~A" 1 2)))