Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Gwenaël Samain
cython
Commits
f86bfab4
Commit
f86bfab4
authored
Mar 27, 2017
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix set test.
parent
bc146e5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/run/set.pyx
tests/run/set.pyx
+3
-3
No files found.
tests/run/set.pyx
View file @
f86bfab4
...
@@ -88,15 +88,15 @@ def test_set_update(v=None):
...
@@ -88,15 +88,15 @@ def test_set_update(v=None):
return
s1
return
s1
def
test_set_multi_update
(
a
,
b
,
c
):
def
test_set_multi_update
():
"""
"""
>>> type(test_set_multi_update()) is set
>>> type(test_set_multi_update()) is set
True
True
>>> sorted(test_set_multi_update())
>>> sorted(test_set_multi_update())
['a', 'b', 'c', 1, 2, 3]
"""
"""
[
'a'
,
'b'
,
'c'
,
1
,
2
,
(
1
,
2
)]
cdef
set
s1
=
set
()
cdef
set
s1
=
set
()
s1
.
update
(
'abc'
,
set
([
1
]),
frozenset
((
1
,
2
)
))
s1
.
update
(
'abc'
,
set
([
1
,
3
]),
frozenset
([
1
,
2
]
))
return
s1
return
s1
...
...
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