tests for quasiquote repair (merge to 4.2)
svn: r15004
This commit is contained in:
parent
43a3a326b7
commit
7cc2a8c898
|
@ -661,6 +661,9 @@
|
||||||
(test '#hash(("foo" . (1 2 3 4 5)))
|
(test '#hash(("foo" . (1 2 3 4 5)))
|
||||||
'qq
|
'qq
|
||||||
`#hash(("foo" . (1 2 ,(+ 1 2) 4 5))))
|
`#hash(("foo" . (1 2 ,(+ 1 2) 4 5))))
|
||||||
|
(test '#hash(("foo" . (1 2 (+ 1 2) 4 5)))
|
||||||
|
'qq
|
||||||
|
`#hash(("foo" . (1 2 (+ 1 2) 4 5))))
|
||||||
(test '#hash(("foo" . (1 2 3 4 5)))
|
(test '#hash(("foo" . (1 2 3 4 5)))
|
||||||
'qq
|
'qq
|
||||||
`#hash(("foo" . (1 2 ,@(list 3 4 5)))))
|
`#hash(("foo" . (1 2 ,@(list 3 4 5)))))
|
||||||
|
@ -670,6 +673,12 @@
|
||||||
(test '#hash((,(read) . 2))
|
(test '#hash((,(read) . 2))
|
||||||
'qq
|
'qq
|
||||||
`#hash((,(read) . 1) (,(read) . 2)))
|
`#hash((,(read) . 1) (,(read) . 2)))
|
||||||
|
(test '#hash(("moo" . 3) ("foo" . (1 2)))
|
||||||
|
'qq
|
||||||
|
`#hash(("moo" . ,(+ 1 2)) ("foo" . (1 2))))
|
||||||
|
(test '#hash(("moo" . (+ 1 2)) ("foo" . -1))
|
||||||
|
'qq
|
||||||
|
`#hash(("moo" . (+ 1 2)) ("foo" . ,(- 1 2))))
|
||||||
(syntax-test #'`#hash(("foo" . ,@(list 1 2 3 4 5))))
|
(syntax-test #'`#hash(("foo" . ,@(list 1 2 3 4 5))))
|
||||||
(error-test #'(read (open-input-string "`#hash((foo ,@(list 1 2 3 4 5)))")) exn:fail:read?)
|
(error-test #'(read (open-input-string "`#hash((foo ,@(list 1 2 3 4 5)))")) exn:fail:read?)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user