From: Vitja Makarov Date: Thu, 3 Mar 2011 19:38:58 +0000 (+0300) Subject: Add testcase for #664 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8c36bf3fac249e03a2e9e7fa40111ac73a072c90;p=cython.git Add testcase for #664 --- diff --git a/tests/run/starred_target_T664.pyx b/tests/run/starred_target_T664.pyx new file mode 100644 index 00000000..b0e20699 --- /dev/null +++ b/tests/run/starred_target_T664.pyx @@ -0,0 +1,23 @@ +def assign(): + """ + >>> assign() + (1, [2, 3, 4, 5]) + """ + a, *b = 1, 2, 3, 4, 5 + return a, b + +def assign3(): + """ + >>> assign3() + (1, [2, 3, 4, 5], 6) + """ + a, *b, c = 1, 2, 3, 4, 5, 6 + return a, b, c + +def assign4(): + """ + >>> assign4() + (1, [2, 3, 4], 5, 6) + """ + a, *b, c, d = 1, 2, 3, 4, 5, 6 + return a, b, c, d