[Zope-CVS] CVS: Products/ZCTextIndex/tests - testNBest.py:126.96.36.199
Sun, 5 May 2002 21:46:26 -0400
Update of /cvs-repository/Products/ZCTextIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv31723/tests
New method NBest.pop_smallest(). This is key to doing multiple unions
efficiently (which we aren't doing yet).
NBest.getbest(): Rewrite in the obvious way. When I wrote this, I
believe I was under the illusion that zip() wasn't available in 2.1.
=== Products/ZCTextIndex/tests/testNBest.py 188.8.131.52 => 184.108.40.206 ===
+ for i in range(1, n+1):
+ self.assertEqual(nb.pop_smallest(), expected[-i])
+ self.assertRaises(IndexError, nb.pop_smallest)