From: Stefan Behnel Date: Thu, 28 Apr 2011 19:04:04 +0000 (+0200) Subject: better test case X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=401edbb24d609c33d5ddf7e3eb4fb59e4b4b2f71;p=cython.git better test case --- diff --git a/tests/run/ifelseexpr_T267.pyx b/tests/run/ifelseexpr_T267.pyx index 062c751b..270d7f33 100644 --- a/tests/run/ifelseexpr_T267.pyx +++ b/tests/run/ifelseexpr_T267.pyx @@ -37,17 +37,17 @@ def nested(x): return 1 if x == 1 else (2 if x == 2 else 3) @cython.test_fail_if_path_exists('//CondExprNode') -def const_true(): +def const_true(a,b): """ - >>> const_true() + >>> const_true(1,2) 1 """ - return 1 if 1 == 1 else 2 + return a if 1 == 1 else b @cython.test_fail_if_path_exists('//CondExprNode') -def const_false(): +def const_false(a,b): """ - >>> const_false() + >>> const_false(1,2) 2 """ - return 1 if 1 != 1 else 2 + return a if 1 != 1 else b