Commit 75808038 authored by Robert Bradshaw's avatar Robert Bradshaw

cpp_bool test (failing)

parent 2c4afc4b
...@@ -16,6 +16,7 @@ with_statement_module_level_T536 ...@@ -16,6 +16,7 @@ with_statement_module_level_T536
function_as_method_T494 function_as_method_T494
closure_inside_cdef_T554 closure_inside_cdef_T554
ipow_crash_T562 ipow_crash_T562
cpp_bool
# CPython regression tests that don't current work: # CPython regression tests that don't current work:
pyregr.test_threadsignals pyregr.test_threadsignals
......
from libcpp cimport bool
def test_bool(bool a):
"""
>>> test_bool(True)
True
>>> test_bool(1)
True
>>> test_bool(0)
False
>>> test_bool(100)
True
>>> test_bool(None)
False
>>> test_bool([])
False
"""
return a
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