enabled test for working ticket
[cython.git] / tests / run / cdef_bool_T227.pyx
1 __doc__ = u"""
2 >>> foo(True)
3 True
4 >>> foo(False)
5 False
6 >>> foo('abc') # doctest: +ELLIPSIS
7 Traceback (most recent call last):
8 TypeError: ...
9
10 >>> call_cfoo(True)
11 True
12 >>> call_cfoo(False)
13 False
14 >>> call_cfoo('abc') # doctest: +ELLIPSIS
15 Traceback (most recent call last):
16 TypeError: ...
17 """
18
19 def foo(bool a):
20     return a == True
21
22 def call_cfoo(a):
23     return cfoo(a)
24
25 cdef cfoo(bool a):
26     return a == True