summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2015-02-07 09:39:32 +0100
committerStefan Behnel <stefan_ml@behnel.de>2015-02-07 09:39:32 +0100
commitf0dd009a3160edcd4158cbe34b1f3668ff91d058 (patch)
treefc1db94d471f78f8504f0ac56149cbc4fa1465b0
parentac8d44a41cc6e39270ad074b36bda94ef54adc87 (diff)
downloadcython-f0dd009a3160edcd4158cbe34b1f3668ff91d058.tar.gz
extend test
-rw-r--r--tests/run/carray_coercion.pyx9
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