Implement smart cond partial-eval
This commit is contained in:
@@ -24,6 +24,9 @@
|
||||
vau_with_wrap_add (read-string "((wrap (vau (y) (+ 13 2 y))) (+ 3 4))")
|
||||
vau_with_add_p (read-string "(vau de (y) (+ (eval y de) (+ 1 2)))")
|
||||
vau_with_add_p_called (read-string "((vau de (y) ((vau dde (z) (+ 1 (eval z dde))) y)) 17)")
|
||||
cond_test (read-string "(cond false 1 false 2 (+ 1 2) 3 true 1337)")
|
||||
cond_vau_test (read-string "(vau de (x) (cond false 1 false 2 x 3 true 42))")
|
||||
cond_vau_test2 (read-string "(vau de (x) (cond false 1 false 2 3 x true 42))")
|
||||
_ (test-case simple_add)
|
||||
_ (test-case vau_with_add)
|
||||
_ (test-case vau_with_add_called)
|
||||
@@ -32,4 +35,7 @@
|
||||
_ (test-case vau_with_wrap_add)
|
||||
_ (test-case vau_with_add_p)
|
||||
_ (test-case vau_with_add_p_called)
|
||||
_ (test-case cond_test)
|
||||
_ (test-case cond_vau_test)
|
||||
_ (test-case cond_vau_test2)
|
||||
) nil))
|
||||
|
||||
Reference in New Issue
Block a user