mirror of
https://github.com/janet-lang/janet
synced 2025-02-17 17:20:01 +00:00
Add test for marshalling channels.
This commit is contained in:
parent
9bc5bec9f1
commit
117c741c29
@ -138,5 +138,13 @@ neldb\0\0\0\xD8\x05printG\x01\0\xDE\xDE\xDE'\x03\0marshal_tes/\x02
|
|||||||
# XXX: still needed? see 72beeeea
|
# XXX: still needed? see 72beeeea
|
||||||
(gccollect)
|
(gccollect)
|
||||||
|
|
||||||
|
# ev/chan marshalling
|
||||||
|
(compwhen (dyn 'ev/chan)
|
||||||
|
(def chan (ev/chan 10))
|
||||||
|
(ev/give chan chan)
|
||||||
|
(def newchan (unmarshal (marshal chan)))
|
||||||
|
(def item (ev/take newchan))
|
||||||
|
(assert (= item newchan) "ev/chan marshalling"))
|
||||||
|
|
||||||
(end-suite)
|
(end-suite)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user