[Zope3-checkins] CVS: Zope3/lib/python/Zope/TextIndex - TextIndexWrapper.py:1.6

Guido van Rossum guido@python.org
Thu, 5 Dec 2002 09:39:43 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/TextIndex
In directory cvs.zope.org:/tmp/cvs-serv15537

Modified Files:
	TextIndexWrapper.py 
Log Message:
Fix stupid copy/paste bug in wordCount().
Add unit tests for wordCount() and documentCount().

=== Zope3/lib/python/Zope/TextIndex/TextIndexWrapper.py 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/TextIndex/TextIndexWrapper.py:1.5	Thu Dec  5 07:41:08 2002
+++ Zope3/lib/python/Zope/TextIndex/TextIndexWrapper.py	Thu Dec  5 09:39:12 2002
@@ -85,4 +85,4 @@
 
     def wordCount(self):
         """Return the number of words in the index."""
-        return self.index.documentCount()
+        return self.index.wordCount()