Commit db15895f authored by gsamain's avatar gsamain

Cypclass test distutil & doctest: typecast operators

parent 7f3c9e02
# mode: run
# distutils: language=c++
# distutils: extra_compile_args=-std=c++11
# tag: cpp
cdef cypclass SomeMemory:
int a
......@@ -21,6 +26,14 @@ cdef cypclass SomeWrapper:
return self.m
cpdef bag():
"""
>>> bag()
-1
4294967295
True
3
False
"""
cdef SomeMemory o = SomeMemory()
o.a = -1
cdef SomeWrapper w = SomeWrapper(3)
......
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