HCoop
/
jackhill
/
mal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d40f588
)
Add test for atoms "leaking" out of let* binds
author
Ali Mohammad Pur
<Ali.mpfard@gmail.com>
Wed, 15 Jan 2020 21:25:12 +0000
(
00:55
+0330)
committer
GitHub
<noreply@github.com>
Wed, 15 Jan 2020 21:25:12 +0000
(
00:55
+0330)
(hopefully) closes #490
tests/step6_file.mal
patch
|
blob
|
blame
|
history
diff --git
a/tests/step6_file.mal
b/tests/step6_file.mal
index
939396c
..
5eecc33
100644
(file)
--- a/
tests/step6_file.mal
+++ b/
tests/step6_file.mal
@@
-93,6
+93,12
@@
(f)
;=>9
+;; Testing whether closures can retain atoms
+(def! g (let* (atm (atom 0)) (fn* () (deref atm))))
+(def! atm (atom 1))
+(g)
+;=>0
+
;>>> deferrable=True
;;
;; -------- Deferrable Functionality --------