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
Gwenaël Samain
cython
Commits
fb20e46c
Commit
fb20e46c
authored
Jul 08, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extended test
parent
e224cced
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
tests/run/cpp_stl_conversion.pyx
tests/run/cpp_stl_conversion.pyx
+18
-0
No files found.
tests/run/cpp_stl_conversion.pyx
View file @
fb20e46c
...
...
@@ -80,6 +80,24 @@ def test_int_vector(o):
cdef
vector
[
int
]
v
=
o
return
v
def
test_string_vector
(
s
):
"""
>>> map(normalize, test_string_vector('ab cd ef gh'.encode('ascii')))
['ab', 'cd', 'ef', 'gh']
"""
cdef
vector
[
string
]
cpp_strings
=
s
.
split
()
return
cpp_strings
cdef
list
convert_string_vector
(
vector
[
string
]
vect
):
return
vect
def
test_string_vector_temp_funcarg
(
s
):
"""
>>> map(normalize, test_string_vector_temp_funcarg('ab cd ef gh'.encode('ascii')))
['ab', 'cd', 'ef', 'gh']
"""
return
convert_string_vector
(
s
.
split
())
def
test_double_vector
(
o
):
"""
>>> test_double_vector([1, 2, 3])
...
...
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