From 401edbb24d609c33d5ddf7e3eb4fb59e4b4b2f71 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 28 Apr 2011 21:04:04 +0200 Subject: [PATCH] better test case --- tests/run/ifelseexpr_T267.pyx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 -- 2.26.2