Commit b6960765 authored by Stefan Behnel's avatar Stefan Behnel

extended test case

parent a6efb9ac
__doc__ = u""" __doc__ = u"""
>>> s = Spam() >>> s = Spam()
>>> s.a >>> s.a
1 2
>>> s.c >>> s.c
3 3
>>> s.test(5) >>> s.test(5)
8 13
>>> s.b >>> s.b
3 5
""" """
cdef class Spam: cdef class Spam:
a = 1 a = 1
def test(self, a): def test(self, a):
return a + self.c return a + self.b + self.c
b = a + 2 b = a + 2 # 3
c = 3 a = b - 1 # 2
c = 3 # 3
b = c + a # 5
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment