Commit 3e5b5f01 authored by Kirill Smelkov's avatar Kirill Smelkov

golang: Test len(nilchan) and repr(nilchan)

Should be in 2aad64bb (golang: Add support for nil channel).
parent 773d8fb2
......@@ -525,6 +525,8 @@ def test_blockforever():
def _test_blockforever():
z = nilchan
assert len(z) == 0
assert repr(z) == "nilchan"
with raises(BlocksForever): z.send(0)
with raises(BlocksForever): z.recv()
with panics("close of nil channel"): z.close() # to fully cover nilchan ops
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment