Commit 849bbd29 authored by gsamain's avatar gsamain

Cypclass test distutil & doctest: __new__

parent 1240a8e5
# mode: run
# distutils: language=c++
# distutils: extra_compile_args=-std=c++11
# tag: cpp
# This is extremely hacky # This is extremely hacky
cdef extern from "Python.h": cdef extern from "Python.h":
struct CyObject "CyObject" struct CyObject "CyObject"
...@@ -71,4 +76,11 @@ cdef double baa(): ...@@ -71,4 +76,11 @@ cdef double baa():
return o return o
cpdef bag(): cpdef bag():
"""
>>> bag()
-1
3
32
6.8
"""
return str(foo()) + '\n' + str(bar()) + '\n' + str(baz()) + '\n' + str(baa()) return str(foo()) + '\n' + str(bar()) + '\n' + str(baz()) + '\n' + str(baa())
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