From: Stefan Behnel Date: Mon, 26 May 2008 21:18:31 +0000 (+0200) Subject: extended test case X-Git-Tag: 0.9.8rc1~11^2~10^2~15^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b6960765c5732d54ed8e7d0f28d96a34bf9b6661;p=cython.git extended test case --- diff --git a/tests/run/extclassbody.pyx b/tests/run/extclassbody.pyx index 7f233b98..0673782f 100644 --- a/tests/run/extclassbody.pyx +++ b/tests/run/extclassbody.pyx @@ -1,18 +1,20 @@ __doc__ = u""" >>> s = Spam() >>> s.a -1 +2 >>> s.c 3 >>> s.test(5) -8 +13 >>> s.b -3 +5 """ cdef class Spam: a = 1 def test(self, a): - return a + self.c - b = a + 2 - c = 3 + return a + self.b + self.c + b = a + 2 # 3 + a = b - 1 # 2 + c = 3 # 3 + b = c + a # 5