Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
pygolang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
pygolang
Commits
3e5b5f01
Commit
3e5b5f01
authored
Jul 21, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
golang: Test len(nilchan) and repr(nilchan)
Should be in
2aad64bb
(golang: Add support for nil channel).
parent
773d8fb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
golang/golang_test.py
golang/golang_test.py
+2
-0
No files found.
golang/golang_test.py
View file @
3e5b5f01
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment