Skip to content

Commit f28496f

Browse files
author
Johannes Gijsbers
committed
Fix test to account for changed interface to find().
1 parent 7fd67ee commit f28496f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/test_indexer.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1919
# SOFTWARE.
2020

21-
# $Id: test_indexer.py,v 1.5 2004-11-29 02:55:47 richard Exp $
21+
# $Id: test_indexer.py,v 1.6 2005-01-05 22:28:32 jlgijsbers Exp $
2222

2323
import os, unittest, shutil
2424

@@ -39,10 +39,10 @@ def test_basics(self):
3939
self.dex.add_text('testing2', 'blah blah the world')
4040
self.assertEqual(self.dex.words, {'BLAH': {2: 2}, 'HELLO': {1: 1},
4141
'WORLD': {2: 1, 1: 1}})
42-
self.assertEqual(self.dex.find(['world']), {2: 'testing2',
43-
1: 'testing1'})
44-
self.assertEqual(self.dex.find(['blah']), {2: 'testing2'})
45-
self.assertEqual(self.dex.find(['blah', 'hello']), {})
42+
self.assertEqual(self.dex.find(['world']), ['testing1',
43+
'testing2'])
44+
self.assertEqual(self.dex.find(['blah']), ['testing2'])
45+
self.assertEqual(self.dex.find(['blah', 'hello']), [])
4646
self.dex.save_index()
4747

4848
def tearDown(self):

0 commit comments

Comments
 (0)