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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
c322df92
Commit
c322df92
authored
Oct 15, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extended test case
parent
1d86687b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
tests/run/consts.pyx
tests/run/consts.pyx
+12
-0
No files found.
tests/run/consts.pyx
View file @
c322df92
...
@@ -127,6 +127,18 @@ def multiplied_lists_nonconst(x):
...
@@ -127,6 +127,18 @@ def multiplied_lists_nonconst(x):
"""
"""
return
[
1
,
2
,
3
]
*
x
return
[
1
,
2
,
3
]
*
x
@
cython
.
test_assert_path_exists
(
"//MulNode"
)
def
multiplied_lists_nonconst_left
(
x
):
"""
>>> multiplied_lists_nonconst_left(5) == 5 * [1,2,3]
True
>>> multiplied_lists_nonconst_left(-5) == -5 * [1,2,3]
True
>>> multiplied_lists_nonconst_left(0) == 0 * [1,2,3]
True
"""
return
x
*
[
1
,
2
,
3
]
@
cython
.
test_fail_if_path_exists
(
"//MulNode//ListNode"
)
@
cython
.
test_fail_if_path_exists
(
"//MulNode//ListNode"
)
@
cython
.
test_assert_path_exists
(
"//MulNode"
)
@
cython
.
test_assert_path_exists
(
"//MulNode"
)
def
multiplied_lists_nonconst_expression
(
x
):
def
multiplied_lists_nonconst_expression
(
x
):
...
...
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