Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
3d34ff57
Commit
3d34ff57
authored
May 30, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
It is customary to include an argument list at the end of a def line.
Also: - call shuffle correctly. - simplify test_suite()
parent
db2e6ca1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
src/BTrees/tests/testSetOps.py
src/BTrees/tests/testSetOps.py
+3
-5
No files found.
src/BTrees/tests/testSetOps.py
View file @
3d34ff57
...
...
@@ -56,7 +56,7 @@ class TestMultiUnion(TestCase):
self
.
assertEqual
(
len
(
output
),
50000
)
self
.
assertEqual
(
list
(
output
),
range
(
50000
))
def
testLotsOfLittleOnes
:
def
testLotsOfLittleOnes
(
self
)
:
from
random
import
shuffle
N
=
5000
inputs
=
[]
...
...
@@ -64,15 +64,13 @@ class TestMultiUnion(TestCase):
base
=
i
*
4
-
N
inputs
.
append
(
IISet
([
base
,
base
+
1
]))
inputs
.
append
(
IITreeSet
([
base
+
2
,
base
+
3
]))
inputs
.
shuffle
(
)
shuffle
(
inputs
)
output
=
multiunion
(
inputs
)
self
.
assertEqual
(
len
(
output
),
N
*
4
)
self
.
assertEqual
(
list
(
output
),
range
(
-
N
,
3
*
N
))
def
test_suite
():
alltests
=
TestSuite
((
makeSuite
(
TestMultiUnion
,
'test'
),
))
return
alltests
return
makeSuite
(
TestMultiUnion
,
'test'
)
def
main
():
TextTestRunner
().
run
(
test_suite
())
...
...
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