From 5ced0c3fc2f6dd611a7c08f93a9fc48c32ec40ff Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Tue, 4 May 2010 13:26:03 +0200 Subject: [PATCH] extended test case based on ticket #145 --- tests/run/and.pyx | 7 +++++++ tests/run/or.pyx | 7 +++++++ 2 files changed, 14 insertions(+) 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 -- 2.26.2