1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-21 18:57:41 +00:00

Fix channel packing bug.

This commit is contained in:
Calvin Rose
2021-12-04 10:28:00 -06:00
parent 8ba142bcf4
commit 868cdb9f8b
2 changed files with 10 additions and 1 deletions

View File

@@ -27,5 +27,14 @@
(assert (< 2605.1158 (math/log-gamma 500) 2605.1159)
"math/log-gamma")
(def ch (ev/thread-chan 2))
(def att (ev/thread-chan 109))
(assert att "`att` was nil after creation")
(ev/give ch att)
(ev/do-thread
(print "started thread")
(assert (ev/take ch) "channel packing bug for threaded abstracts on threaded channels."))
(print "done")
(end-suite)