diff options
author | Kevin R. Thornton <krthornt@uci.edu> | 2016-02-24 18:02:46 -0800 |
---|---|---|
committer | Kevin R. Thornton <krthornt@uci.edu> | 2016-02-24 18:02:46 -0800 |
commit | 364695bd2871a4fc25f6fb82b3df79e6a9031d7a (patch) | |
tree | 28b9492134cf2420a37fae956c50be83f491f554 /tests/run/libcpp_all.pyx | |
parent | 6372622aac3058fde26abdab971ec4397e7f31aa (diff) | |
download | cython-364695bd2871a4fc25f6fb82b3df79e6a9031d7a.tar.gz |
add in MRE for devs to look at
Diffstat (limited to 'tests/run/libcpp_all.pyx')
-rw-r--r-- | tests/run/libcpp_all.pyx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run/libcpp_all.pyx b/tests/run/libcpp_all.pyx index d068f9835..45983bafc 100644 --- a/tests/run/libcpp_all.pyx +++ b/tests/run/libcpp_all.pyx @@ -116,3 +116,12 @@ assert vec_alloc_int.size() == 10 cdef libcpp.list.list[int,allocator[int]] list_alloc_int = libcpp.list.list[int,allocator[int]](10,1) assert list_alloc_int.size() == 10 + +##Something about the default params breaks the auto-conversion... +def convert_to_vector(I): + """ + >>> convert_to_vector([1,2,3,4]) + """ + cdef vector[int] x = I + + |