Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
9dcd2cc4
Commit
9dcd2cc4
authored
Oct 12, 2001
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests were not run :-(
parent
f765bbe5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lib/python/Products/PluginIndexes/tests/testFieldIndex.py
lib/python/Products/PluginIndexes/tests/testFieldIndex.py
+5
-5
No files found.
lib/python/Products/PluginIndexes/tests/testFieldIndex.py
View file @
9dcd2cc4
...
...
@@ -161,7 +161,7 @@ class TestCase( unittest.TestCase ):
for
k
,
v
in
expectedValues
:
assert
k
in
result
def
check
Empty
(
self
):
def
test
Empty
(
self
):
"Test an empty FieldIndex."
assert
len
(
self
.
_index
)
==
0
...
...
@@ -182,7 +182,7 @@ class TestCase( unittest.TestCase ):
self
.
_checkApply
(
self
.
_max_req
,
[]
)
self
.
_checkApply
(
self
.
_range_req
,
[]
)
def
check
Populated
(
self
):
def
test
Populated
(
self
):
""" Test a populated FieldIndex """
self
.
_populateIndex
()
values
=
self
.
_values
...
...
@@ -207,21 +207,21 @@ class TestCase( unittest.TestCase ):
self
.
_checkApply
(
self
.
_max_req
,
values
[
:
3
]
+
values
[
-
2
:
]
)
self
.
_checkApply
(
self
.
_range_req
,
values
[
2
:
5
]
)
def
check
Zero
(
self
):
def
test
Zero
(
self
):
""" Make sure 0 gets indexed """
self
.
_populateIndex
()
values
=
self
.
_values
self
.
_checkApply
(
self
.
_zero_req
,
values
[
-
2
:
-
1
]
)
assert
0
in
self
.
_index
.
uniqueValues
(
'foo'
)
def
check
None
(
self
):
def
test
None
(
self
):
""" make sure None gets indexed """
self
.
_populateIndex
()
values
=
self
.
_values
self
.
_checkApply
(
self
.
_none_req
,
values
[
-
1
:])
assert
None
in
self
.
_index
.
uniqueValues
(
'foo'
)
def
check
Range
(
self
):
def
test
Range
(
self
):
"""Test a range search"""
index
=
FieldIndex
(
'foo'
)
for
i
in
range
(
100
):
...
...
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