Commit 5e0f12da authored by gsamain's avatar gsamain

Cypclass test distutil & doctest: templates

parent 47cf0af5
# mode: run
# distutils: language=c++
# distutils: extra_compile_args=-std=c++11
# tag: cpp
cdef cypclass SomeMemory[T, U]:
T a
U b
......@@ -12,6 +17,13 @@ cdef cypclass SomeMemory[T, U]:
return self.b
cpdef bag():
"""
>>> bag()
1
2.3
1
2.3
"""
cdef SomeMemory[int, double] o = SomeMemory[int, double](1, 2.3)
cdef SomeMemory[int, int] b = new SomeMemory[int, int]()
del b
......
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