[Zope-CVS] CVS: Products/ZCTextIndex/tests - testZCTextIndex.py:1.1.2.7
Tim Peters
tim.one@comcast.net
Fri, 3 May 2002 02:15:53 -0400
Update of /cvs-repository/Products/ZCTextIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv12127/tests
Modified Files:
Tag: TextIndexDS9-branch
testZCTextIndex.py
Log Message:
scaled_int(): Since the potential int overflow problems are probably
squashed now, I feel better saving 10 fractional bits than 8. 10 is
about 3 decimal digits to start with, and that's easy to visualize.
=== Products/ZCTextIndex/tests/testZCTextIndex.py 1.1.2.6 => 1.1.2.7 ===
for doc, score in r:
score = scaled_int(float(score) / wq)
- self.assert_(0 <= score <= 256)
+ self.assert_(0 <= score <= 1024)
eq(d[doc], score)
class QueryTests(testQueryEngine.TestQueryEngine,