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
74e8d329
Commit
74e8d329
authored
Sep 30, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable test
parent
8f692c66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
tests/memoryview/memoryview.pyx
tests/memoryview/memoryview.pyx
+8
-2
No files found.
tests/memoryview/memoryview.pyx
View file @
74e8d329
...
...
@@ -1024,12 +1024,18 @@ def test_cpython_offbyone_issue_23349():
return
bytearray
(
v
).
decode
(
'ascii'
)
cdef
int
min_max_tree_restructuring
():
@
cython
.
test_fail_if_path_exists
(
'//SimpleCallNode'
)
@
cython
.
test_assert_path_exists
(
'//ReturnStatNode//TupleNode'
,
'//ReturnStatNode//TupleNode//CondExprNode'
,
)
def
min_max_tree_restructuring
():
"""
>>> min_max_tree_restructuring()
(1, 3)
"""
cdef
char
a
[
5
]
a
=
[
1
,
2
,
3
,
4
,
5
]
cdef
char
[:]
aview
=
a
return
max
(
<
char
>
1
,
aview
[
0
])
return
max
(
<
char
>
1
,
aview
[
0
])
,
min
(
<
char
>
5
,
aview
[
2
])
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