From b6960765c5732d54ed8e7d0f28d96a34bf9b6661 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 26 May 2008 23:18:31 +0200 Subject: [PATCH] extended test case --- tests/run/extclassbody.pyx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 -- 2.26.2