moved new listcomp test over to existing test module for list comprehensions
authorStefan Behnel <scoder@users.berlios.de>
Sat, 17 Jul 2010 10:21:39 +0000 (12:21 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 17 Jul 2010 10:21:39 +0000 (12:21 +0200)
tests/run/list_comprehension.pyx [deleted file]
tests/run/listcomp.pyx

diff --git a/tests/run/list_comprehension.pyx b/tests/run/list_comprehension.pyx
deleted file mode 100644 (file)
index 2360a71..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-
-def foo():
-    """
-    >>> foo()
-    [[], [-1], [-1, 0], [-1, 0, 1]]
-    """
-    result = [[a-1 for a in range(b)] for b in range(4)]
-    return result
index 0680aa2aa332dd924c626d26f4f21d58d770e647..1d9a38f686ef4249cf9d6302a7b50c4c116c5af3 100644 (file)
@@ -55,3 +55,11 @@ def global_listcomp():
     >>> listcomp_result
     [0, 1, 4, 9, 16]
     """
+
+def nested_result():
+    """
+    >>> nested_result()
+    [[], [-1], [-1, 0], [-1, 0, 1]]
+    """
+    result = [[a-1 for a in range(b)] for b in range(4)]
+    return result