[Zope3-checkins] CVS: Zope3/src/zope/fieldindex/tests - test_fieldindex.py:1.5
Andreas Jung
andreas@andreas-jung.com
Thu, 27 Mar 2003 04:28:09 -0500
Update of /cvs-repository/Zope3/src/zope/fieldindex/tests
In directory cvs.zope.org:/tmp/cvs-serv11910
Modified Files:
test_fieldindex.py
Log Message:
sequences of values can not be passed to search() to allow a search
on multiple values. The results of the subsearches are combined using OR.
=== Zope3/src/zope/fieldindex/tests/test_fieldindex.py 1.4 => 1.5 ===
--- Zope3/src/zope/fieldindex/tests/test_fieldindex.py:1.4 Wed Mar 26 10:46:29 2003
+++ Zope3/src/zope/fieldindex/tests/test_fieldindex.py Thu Mar 27 04:28:08 2003
@@ -80,6 +80,14 @@
self._search('sucks', IISet([]))
+ def test_indexdoc(self):
+
+ self._populate_index()
+
+ self._search(('the','quick') , IISet([1,2]))
+ self._search(('the','fox','sucks',-2) , IISet([1,4,5]))
+
+
def test_reindexdoc(self):
self._populate_index()