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
Kirill Smelkov
cython
Commits
03e7c3f7
Commit
03e7c3f7
authored
Oct 08, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor test cleanup.
parent
3b21ba3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
tests/run/for_in_range_T372.pyx
tests/run/for_in_range_T372.pyx
+7
-0
No files found.
tests/run/for_in_range_T372.pyx
View file @
03e7c3f7
# mode: run
# ticket: 372
cimport
cython
...
...
@@ -22,6 +23,7 @@ def test_modify():
print
return
i
,
n
@
cython
.
test_assert_path_exists
(
"//ForFromStatNode"
)
@
cython
.
test_fail_if_path_exists
(
"//ForInStatNode"
)
def
test_negindex
():
...
...
@@ -40,6 +42,7 @@ def test_negindex():
n
=
0
return
i
,
n
@
cython
.
test_assert_path_exists
(
"//ForFromStatNode"
,
"//ForFromStatNode//PrintStatNode//CoerceToPyTypeNode"
)
@
cython
.
test_fail_if_path_exists
(
"//ForInStatNode"
)
...
...
@@ -58,6 +61,7 @@ def test_negindex_inferred():
n
=
0
return
i
,
n
@
cython
.
test_assert_path_exists
(
"//ForFromStatNode"
)
@
cython
.
test_fail_if_path_exists
(
"//ForInStatNode"
)
def
test_fix
():
...
...
@@ -77,6 +81,7 @@ def test_fix():
print
return
i
@
cython
.
test_assert_path_exists
(
"//ForFromStatNode"
)
@
cython
.
test_fail_if_path_exists
(
"//ForInStatNode"
)
def
test_break
():
...
...
@@ -99,6 +104,7 @@ def test_break():
print
return
i
,
n
@
cython
.
test_assert_path_exists
(
"//ForFromStatNode"
)
@
cython
.
test_fail_if_path_exists
(
"//ForInStatNode"
)
def
test_return
():
...
...
@@ -135,5 +141,6 @@ def test_enum_range():
"""
cdef
RangeEnum
n
=
EnumValue3
for
i
in
range
(
n
):
assert
0
<=
<
int
>
i
<
<
int
>
n
assert
cython
.
typeof
(
i
)
==
"RangeEnum"
,
cython
.
typeof
(
i
)
return
cython
.
typeof
(
i
)
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