X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fread.lisp;h=fa841a2f31f31e4265e508e1ebb0cf8146cd0a5d;hb=6d622a8f09811bc4af366f28bd8f25b1022d4ffd;hp=6f10ca2c128ce8593b984f4247179212ce4c850b;hpb=efad2c1109c168fa4268875c1ff78fb24315e969;p=jscl.git diff --git a/tests/read.lisp b/tests/read.lisp index 6f10ca2..fa841a2 100644 --- a/tests/read.lisp +++ b/tests/read.lisp @@ -1,4 +1,14 @@ ;; TODO: Uncomment when either read-from-string supports all these parameters ;; or when test macro supports error handling, whichever comes first ;; (test (equal (read-from-string " 1 3 5" t nil :start 2) (values 3 5))) -(test (equal (read-from-string "(a b c)") (values '(A B C) 7))) +(expected-failure + (equal (multiple-value-list (read-from-string "(a b c)")) + '((A B C) 7))) + +(test (equal (symbol-name (read-from-string "cl:cond")) "COND")) +(test (equal (symbol-name (read-from-string "co|N|d")) "COND")) +(test (equal (symbol-name (read-from-string "abc\\def")) "ABCdEF")) +(test (equal (symbol-name (read-from-string "|.|")) ".")) +(test (equal (read-from-string "(1 .25)") '(1 0.25))) +(test (equal (read-from-string ".25") 0.25)) +(test (equal (read-from-string "(1 . 25)") '(1 . 25)))