File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 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
2323import 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 ):
You can’t perform that action at this time.
0 commit comments