def test_word_xsection(self):
        pos1 = utf8.word_intersection(u"தேடுக", u"தடங்கல்")
        self.assertTrue(pos1[0] == (2, 3))

        pos2 = utf8.word_intersection(u"தேடுக", u"சொல்")
        self.assertFalse(pos2)

        pos3 = utf8.word_intersection(u"மென்பொருள்", u"யுனிகோட்")
        self.assertFalse(pos3)
Beispiel #2
0
    def test_word_xsection( self ):
        pos1 = utf8.word_intersection( u"தேடுக",u"தடங்கல்")
        self.assertTrue( pos1[0] == (2,3) )
        
        pos2 = utf8.word_intersection( u"தேடுக",u"சொல்")
        self.assertFalse(  pos2 )

        pos3 = utf8.word_intersection(u"மென்பொருள்",u"யுனிகோட்")
        self.assertFalse( pos3 )
 def test_word_xsection( self ):
     pos1 = utf8.word_intersection( u"தேடுக",u"தடங்கல்")
     self.assertTrue( pos1[0] == (2,3) )
     
     pos2 = utf8.word_intersection( u"தேடுக",u"சொல்")
     self.assertFalse(  pos2 )