Commit e0fa6040 authored by Stefan Behnel's avatar Stefan Behnel

extended test case

--HG--
extra : rebase_source : bb1ce8de92322ff0d5c419585329bc8f29d25f8b
parent 0446469c
...@@ -4,6 +4,20 @@ ...@@ -4,6 +4,20 @@
cimport cython cimport cython
cdef class MyList(list):
def test_append(self, x):
"""
>>> l = MyList()
>>> type(l) is MyList
True
>>> list(l)
[]
>>> l.test_append(5)
>>> list(l)
[5]
"""
self.append(x)
cdef class MyDict(dict): cdef class MyDict(dict):
@cython.test_assert_path_exists("//ComprehensionNode//AttributeNode", @cython.test_assert_path_exists("//ComprehensionNode//AttributeNode",
"//ComprehensionNode//AttributeNode[@attribute='items']") "//ComprehensionNode//AttributeNode[@attribute='items']")
......
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