From: Stefan Behnel Date: Sun, 28 Dec 2008 16:38:37 +0000 (+0100) Subject: extended test case to make sure arguments pass as expected X-Git-Tag: 0.11-beta~69 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0511e504b8d722270c683b3c9a2c013af0bc5cc6;p=cython.git extended test case to make sure arguments pass as expected --- diff --git a/tests/run/kwonlyargs.pyx b/tests/run/kwonlyargs.pyx index aef2f1ef..d5f55298 100644 --- a/tests/run/kwonlyargs.pyx +++ b/tests/run/kwonlyargs.pyx @@ -103,31 +103,34 @@ __doc__ = u""" """ def b(a, b, c): - pass + a, b, c = b, c, a def c(a, b, c=1): - pass + a, b, c = b, c, a def d(a, b, *, c = 88): - pass + a, b, c = b, c, a def e(a, b, c = 88, **kwds): - pass + a, b, c = b, c, a def f(a, b, *, c, d = 42): - pass + a, b, c, d = b, c, d, a def g(a, b, *, c, d = 42, e = 17, f, **kwds): - pass + a, b, c, d, e, f = b, c, d, e, f, a def h(a, b, *args, c, d = 42, e = 17, f, **kwds): - pass + a, b, c, d, e, f = b, c, d, e, f, a def k(a, b, c=1, *args, d = 42, e = 17, f, **kwds): - pass + a, b, c, d, e, f = b, c, d, e, f, a def l(*, a, b, c = 88): - pass + a, b, c = b, c, a def m(a, *, b, c = 88): - pass + a, b, c = b, c, a + +def n(a, *, b, c = 88): + a, b, c = b, c, a