1
0
mirror of https://github.com/janet-lang/janet synced 2025-09-07 05:18:04 +00:00

Add with-env.

This commit is contained in:
Calvin Rose
2024-05-16 21:42:34 -05:00
parent e914eaf055
commit 721f280966
3 changed files with 9 additions and 0 deletions

View File

@@ -976,4 +976,7 @@
(assert (= () '() (macex '())) "macex ()")
(assert (= '[] (macex '[])) "macex []")
(assert (= :a (with-env @{:b :a} (dyn :b))) "with-env dyn")
(assert-error "unknown symbol +" (with-env @{} (eval '(+ 1 2))))
(end-suite)