1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-21 02:37:49 +00:00

Update changelog and allow evaluating streams with dofile.

This commit is contained in:
Calvin Rose
2021-10-30 14:41:01 -05:00
parent 34c7f15d6d
commit 9cc4e48124
3 changed files with 19 additions and 5 deletions

View File

@@ -192,4 +192,11 @@
(assert (= (math/gcd 462 1071) 21) "math/gcd 1")
(assert (= (math/lcm 462 1071) 23562) "math/lcm 1")
# Evaluate stream with `dofile`
(def [r w] (os/pipe))
(:write w "(setdyn :x 10)")
(:close w)
(def stream-env (dofile r))
(assert (= (stream-env :x) 10) "dofile stream 1")
(end-suite)