Add some more eval tests
This commit is contained in:
parent
387bc0d9f2
commit
6b2c635cfa
@ -591,13 +591,13 @@
|
||||
(setf test-payload (quote (+ x 2)))
|
||||
(setf x 4)
|
||||
(assert (= 6 (eval test-payload)))
|
||||
;; (assert (= 6 (eval (quote ((fn [] (+ 3 3)))))))
|
||||
;; XXX: This must be commented out while we resolve stmts being run through
|
||||
;; eval. Please fix me. -- PRT
|
||||
(assert (= 9 ((eval (quote (fn [x] (+ 3 3 x)))) 3)))
|
||||
(assert (= 1 (eval (quote 1))))
|
||||
(assert (= "foobar" (eval (quote "foobar"))))
|
||||
(setv x (quote 42))
|
||||
(assert (= x (eval x))))
|
||||
(assert (= x (eval x)))
|
||||
(assert (= 27 (eval (+ (quote (*)) (* [(quote 3)] 3)))))
|
||||
(assert (= None (eval (quote (print ""))))))
|
||||
|
||||
|
||||
(defn test-import-syntax []
|
||||
|
Loading…
x
Reference in New Issue
Block a user