extended test case based on ticket #145
authorStefan Behnel <scoder@users.berlios.de>
Tue, 4 May 2010 11:26:03 +0000 (13:26 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Tue, 4 May 2010 11:26:03 +0000 (13:26 +0200)
tests/run/and.pyx
tests/run/or.pyx

index 11721b1ca824dcd7e7e9e418703a050df96e3274..4babdebe3e3c0852d7774d5d3adcc7b43e589b0f 100644 (file)
@@ -52,3 +52,10 @@ def and2_no_result(a,b):
     'b *'
     """
     a and b
+
+def and2_literal():
+    """
+    >>> and2_literal()
+    5
+    """
+    return True and 5
index b5243320ddb8c2cd536e20317e0b21fab20c4129..c4c47966a1d253b5154250908755570b3aa6ac7f 100644 (file)
@@ -51,3 +51,10 @@ def or2_no_result(a,b):
     'a *'
     """
     a or b
+
+def or2_literal():
+    """
+    >>> or2_literal()
+    5
+    """
+    return False or 5