Commit 0948e79c authored by Stefan Behnel's avatar Stefan Behnel

renamed test case

parent 1c8dd7bf
...@@ -203,24 +203,24 @@ def all_in_typed_gen(seq): ...@@ -203,24 +203,24 @@ def all_in_typed_gen(seq):
@cython.test_fail_if_path_exists("//SimpleCallNode", @cython.test_fail_if_path_exists("//SimpleCallNode",
"//YieldExprNode", "//YieldExprNode",
"//IfStatNode//CoerceToBooleanNode") "//IfStatNode//CoerceToBooleanNode")
def all_in_nested_gen(seq): def all_in_double_gen(seq):
""" """
>>> all(x for L in [[1,1,1],[1,1,1],[1,1,1]] for x in L) >>> all(x for L in [[1,1,1],[1,1,1],[1,1,1]] for x in L)
True True
>>> all_in_nested_gen([[1,1,1],[1,1,1],[1,1,1]]) >>> all_in_double_gen([[1,1,1],[1,1,1],[1,1,1]])
True True
>>> all(x for L in [[1,1,1],[1,1,1],[1,1,0]] for x in L) >>> all(x for L in [[1,1,1],[1,1,1],[1,1,0]] for x in L)
False False
>>> all_in_nested_gen([[1,1,1],[1,1,1],[1,1,0]]) >>> all_in_double_gen([[1,1,1],[1,1,1],[1,1,0]])
False False
>>> all(x for L in [[1,1,1],[0,1,1],[1,1,1]] for x in L) >>> all(x for L in [[1,1,1],[0,1,1],[1,1,1]] for x in L)
False False
>>> all_in_nested_gen([[1,1,1],[0,1,1],[1,1,1]]) >>> all_in_double_gen([[1,1,1],[0,1,1],[1,1,1]])
False False
>>> all_in_nested_gen([VerboseGetItem([1,1,1]), VerboseGetItem([1,1,1,1,1])]) >>> all_in_double_gen([VerboseGetItem([1,1,1]), VerboseGetItem([1,1,1,1,1])])
0 0
1 1
2 2
...@@ -232,7 +232,7 @@ def all_in_nested_gen(seq): ...@@ -232,7 +232,7 @@ def all_in_nested_gen(seq):
4 4
5 5
True True
>>> all_in_nested_gen([VerboseGetItem([1,1,1]),VerboseGetItem([1,1]),VerboseGetItem([1,1,0])]) >>> all_in_double_gen([VerboseGetItem([1,1,1]),VerboseGetItem([1,1]),VerboseGetItem([1,1,0])])
0 0
1 1
2 2
......
...@@ -194,19 +194,19 @@ def any_in_typed_gen(seq): ...@@ -194,19 +194,19 @@ def any_in_typed_gen(seq):
@cython.test_fail_if_path_exists("//SimpleCallNode", @cython.test_fail_if_path_exists("//SimpleCallNode",
"//YieldExprNode", "//YieldExprNode",
"//IfStatNode//CoerceToBooleanNode") "//IfStatNode//CoerceToBooleanNode")
def any_in_nested_gen(seq): def any_in_double_gen(seq):
""" """
>>> any(x for L in [[0,0,0],[0,0,1],[0,0,0]] for x in L) >>> any(x for L in [[0,0,0],[0,0,1],[0,0,0]] for x in L)
True True
>>> any_in_nested_gen([[0,0,0],[0,0,1],[0,0,0]]) >>> any_in_double_gen([[0,0,0],[0,0,1],[0,0,0]])
True True
>>> any(x for L in [[0,0,0],[0,0,0],[0,0,0]] for x in L) >>> any(x for L in [[0,0,0],[0,0,0],[0,0,0]] for x in L)
False False
>>> any_in_nested_gen([[0,0,0],[0,0,0],[0,0,0]]) >>> any_in_double_gen([[0,0,0],[0,0,0],[0,0,0]])
False False
>>> any_in_nested_gen([VerboseGetItem([0,0,0]), VerboseGetItem([0,0,1,0,0])]) >>> any_in_double_gen([VerboseGetItem([0,0,0]), VerboseGetItem([0,0,1,0,0])])
0 0
1 1
2 2
...@@ -215,7 +215,7 @@ def any_in_nested_gen(seq): ...@@ -215,7 +215,7 @@ def any_in_nested_gen(seq):
1 1
2 2
True True
>>> any_in_nested_gen([VerboseGetItem([0,0,0]),VerboseGetItem([0,0]),VerboseGetItem([0,0,0])]) >>> any_in_double_gen([VerboseGetItem([0,0,0]),VerboseGetItem([0,0]),VerboseGetItem([0,0,0])])
0 0
1 1
2 2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment