Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
0948e79c
Commit
0948e79c
authored
May 25, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed test case
parent
1c8dd7bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
tests/run/all.pyx
tests/run/all.pyx
+6
-6
tests/run/any.pyx
tests/run/any.pyx
+5
-5
No files found.
tests/run/all.pyx
View file @
0948e79c
...
...
@@ -203,24 +203,24 @@ def all_in_typed_gen(seq):
@
cython
.
test_fail_if_path_exists
(
"//SimpleCallNode"
,
"//YieldExprNode"
,
"//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)
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
>>> all(x for L in [[1,1,1],[1,1,1],[1,1,0]] for x in L)
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
>>> all(x for L in [[1,1,1],[0,1,1],[1,1,1]] for x in L)
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
>>> 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
1
2
...
...
@@ -232,7 +232,7 @@ def all_in_nested_gen(seq):
4
5
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
1
2
...
...
tests/run/any.pyx
View file @
0948e79c
...
...
@@ -194,19 +194,19 @@ def any_in_typed_gen(seq):
@
cython
.
test_fail_if_path_exists
(
"//SimpleCallNode"
,
"//YieldExprNode"
,
"//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)
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
>>> any(x for L in [[0,0,0],[0,0,0],[0,0,0]] for x in L)
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
>>> 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
1
2
...
...
@@ -215,7 +215,7 @@ def any_in_nested_gen(seq):
1
2
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
1
2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment