Commit 401edbb2 authored by Stefan Behnel's avatar Stefan Behnel

better test case

parent e79c7017
...@@ -37,17 +37,17 @@ def nested(x): ...@@ -37,17 +37,17 @@ def nested(x):
return 1 if x == 1 else (2 if x == 2 else 3) return 1 if x == 1 else (2 if x == 2 else 3)
@cython.test_fail_if_path_exists('//CondExprNode') @cython.test_fail_if_path_exists('//CondExprNode')
def const_true(): def const_true(a,b):
""" """
>>> const_true() >>> const_true(1,2)
1 1
""" """
return 1 if 1 == 1 else 2 return a if 1 == 1 else b
@cython.test_fail_if_path_exists('//CondExprNode') @cython.test_fail_if_path_exists('//CondExprNode')
def const_false(): def const_false(a,b):
""" """
>>> const_false() >>> const_false(1,2)
2 2
""" """
return 1 if 1 != 1 else 2 return a if 1 != 1 else 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