Commit fb20e46c authored by Stefan Behnel's avatar Stefan Behnel

extended test

parent e224cced
...@@ -80,6 +80,24 @@ def test_int_vector(o): ...@@ -80,6 +80,24 @@ def test_int_vector(o):
cdef vector[int] v = o cdef vector[int] v = o
return v 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): def test_double_vector(o):
""" """
>>> test_double_vector([1, 2, 3]) >>> test_double_vector([1, 2, 3])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment