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
Boxiang Sun
cython
Commits
82eecb28
Commit
82eecb28
authored
Oct 15, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
additional test case for multiplied lists/tuples of length 1
parent
bb97723f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
tests/run/consts.pyx
tests/run/consts.pyx
+16
-0
No files found.
tests/run/consts.pyx
View file @
82eecb28
...
...
@@ -91,6 +91,14 @@ def lists():
"""
return
[
1
,
2
,
3
]
+
[
4
,
5
,
6
]
@
cython
.
test_fail_if_path_exists
(
"//MulNode"
)
def
multiplied_lists_right_len1
():
"""
>>> multiplied_lists_right_len1() == [1] * 5
True
"""
return
[
1
]
*
5
@
cython
.
test_fail_if_path_exists
(
"//MulNode"
)
def
multiplied_lists_right
():
"""
...
...
@@ -175,6 +183,14 @@ def multiplied_const_tuple():
"""
return
(
1
,
2
)
*
5
@
cython
.
test_fail_if_path_exists
(
"//MulNode"
)
def
multiplied_const_tuple_len1
():
"""
>>> multiplied_const_tuple_len1() == (1,) * 5
True
"""
return
(
1
,)
*
5
@
cython
.
test_fail_if_path_exists
(
"//PrimaryCmpNode"
)
def
compile_time_DEF
():
"""
...
...
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