From: Stefan Behnel Date: Tue, 4 May 2010 11:26:03 +0000 (+0200) Subject: extended test case based on ticket #145 X-Git-Tag: 0.13.beta0~109 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5ced0c3fc2f6dd611a7c08f93a9fc48c32ec40ff;p=cython.git extended test case based on ticket #145 --- diff --git a/tests/run/and.pyx b/tests/run/and.pyx index 11721b1c..4babdebe 100644 --- a/tests/run/and.pyx +++ b/tests/run/and.pyx @@ -52,3 +52,10 @@ def and2_no_result(a,b): 'b *' """ a and b + +def and2_literal(): + """ + >>> and2_literal() + 5 + """ + return True and 5 diff --git a/tests/run/or.pyx b/tests/run/or.pyx index b5243320..c4c47966 100644 --- a/tests/run/or.pyx +++ b/tests/run/or.pyx @@ -51,3 +51,10 @@ def or2_no_result(a,b): 'a *' """ a or b + +def or2_literal(): + """ + >>> or2_literal() + 5 + """ + return False or 5