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
8e051569
Commit
8e051569
authored
Nov 17, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move old list test from broken into list.pyx
parent
11da83d1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
tests/broken/r_builtinlist.pyx
tests/broken/r_builtinlist.pyx
+0
-6
tests/run/list.pyx
tests/run/list.pyx
+10
-0
No files found.
tests/broken/r_builtinlist.pyx
deleted
100644 → 0
View file @
11da83d1
def
f
():
cdef
list
l
l
=
list
()
l
.
append
(
"second"
)
l
.
insert
(
0
,
"first"
)
return
l
tests/run/list.pyx
View file @
8e051569
...
@@ -77,6 +77,16 @@ def test_list_append():
...
@@ -77,6 +77,16 @@ def test_list_append():
l1
.
append
(
4
)
l1
.
append
(
4
)
return
l1
return
l1
def
test_list_append_insert
():
"""
>>> test_list_append_insert()
['first', 'second']
"""
cdef
list
l
=
[]
l
.
append
(
"second"
)
l
.
insert
(
0
,
"first"
)
return
l
def
test_list_pop
():
def
test_list_pop
():
"""
"""
>>> test_list_pop()
>>> test_list_pop()
...
...
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