projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e79c701
)
better test case
author
Stefan Behnel
<scoder@users.berlios.de>
Thu, 28 Apr 2011 19:04:04 +0000
(21:04 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Thu, 28 Apr 2011 19:04:04 +0000
(21:04 +0200)
tests/run/ifelseexpr_T267.pyx
patch
|
blob
|
history
diff --git
a/tests/run/ifelseexpr_T267.pyx
b/tests/run/ifelseexpr_T267.pyx
index 062c751b8e78fb8dfd8bd6efe2a6c4d58e026f2e..270d7f33d0e11b18ef24c73e6d05c32b46398359 100644
(file)
--- 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