diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2015-02-07 09:39:32 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2015-02-07 09:39:32 +0100 |
commit | f0dd009a3160edcd4158cbe34b1f3668ff91d058 (patch) | |
tree | fc1db94d471f78f8504f0ac56149cbc4fa1465b0 | |
parent | ac8d44a41cc6e39270ad074b36bda94ef54adc87 (diff) | |
download | cython-f0dd009a3160edcd4158cbe34b1f3668ff91d058.tar.gz |
extend test
-rw-r--r-- | tests/run/carray_coercion.pyx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run/carray_coercion.pyx b/tests/run/carray_coercion.pyx index e08d0adcc..363e2d372 100644 --- a/tests/run/carray_coercion.pyx +++ b/tests/run/carray_coercion.pyx @@ -67,6 +67,15 @@ def from_int_array_array(): return v +def assign_int_array_array(): + """ + >>> assign_int_array_array() + [[11, 12, 13], [21, 22, 23]] + """ + cdef int[2][3] v = [[11, 12, 13], [21, 22, 23]] + return v + + ctypedef struct MyStructType: int x double y |