Commit 1e8d6249 authored by Stefan Behnel's avatar Stefan Behnel

test mixed boolean operations with C types and Python types

parent 2e257fcf
......@@ -14,6 +14,15 @@ __doc__ = """
False
>>> test_more(None, 0)
False
>>> test_more_c(None, None)
True
>>> test_more_c(None, 1)
True
>>> test_more_c(1, None)
False
>>> test_more_c(None, 0)
False
"""
def test_and(a,b):
......@@ -21,3 +30,6 @@ def test_and(a,b):
def test_more(a,b):
return a is None and (b is None or b == 1)
def test_more_c(a,b):
return (a is None or 1 == 2) and (b is None or b == 1)
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