X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fformat.lisp;h=a3eae9d1777cc745a567d5d1ba8cc5756e0b22f0;hb=ebe7c315e2527ae59ce5544c4d117ead4dd04ff3;hp=a37ed090427b3618b019bc5dfb7bc4f0be706bcd;hpb=dd20cf7108db3179b31b686b55eaeb16b0305119;p=jscl.git diff --git a/tests/format.lisp b/tests/format.lisp index a37ed09..a3eae9d 100644 --- a/tests/format.lisp +++ b/tests/format.lisp @@ -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)))