X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fformat.lisp;h=a3eae9d1777cc745a567d5d1ba8cc5756e0b22f0;hb=3d1e86f1638c71cfc4d11638dcb6b42cfd30d859;hp=ad6195425b4ae197b07428948a379ef9d73b2892;hpb=e47b48d551a9cd62b9c80e8c93057f53295b3283;p=jscl.git diff --git a/tests/format.lisp b/tests/format.lisp index ad61954..a3eae9d 100644 --- a/tests/format.lisp +++ b/tests/format.lisp @@ -8,7 +8,9 @@ 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)))