diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2015-02-07 10:29:22 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2015-02-07 10:29:22 +0100 |
commit | d75f8d93bb60b7195e73bc9930570492f0b4ce05 (patch) | |
tree | a4c2b805b20758b2303def70d341f77e9f6ef776 | |
parent | b2538cdb16cee517227acb85fbdd26dc22b2555d (diff) | |
download | cython-d75f8d93bb60b7195e73bc9930570492f0b4ce05.tar.gz |
extend test
-rw-r--r-- | tests/run/carray_coercion.pyx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/run/carray_coercion.pyx b/tests/run/carray_coercion.pyx index 363e2d372..5c313e4e6 100644 --- a/tests/run/carray_coercion.pyx +++ b/tests/run/carray_coercion.pyx @@ -76,6 +76,17 @@ def assign_int_array_array(): return v +def build_from_list_of_arrays(): + """ + >>> build_from_list_of_arrays() + [[11, 12, 13], [21, 22, 23]] + """ + cdef int[3] x = [11, 12, 13] + cdef int[3] y = [21, 22, 23] + cdef int[2][3] v = [x, y] + return v + + ctypedef struct MyStructType: int x double y |