Пример #1
0
 def test_mm(self):
     for i in range(50):
         str = random_word(1000)
         x = sa.get_suffix_array(str)
         y = sa.suffix_array_ManberMyers(str)
         self.assertEquals(x, y)
Пример #2
0
 def test_mm(self):
     for i in range(50):
         str = random_word(1000)
         x = sa.get_suffix_array(str)
         y = sa.suffix_array_ManberMyers(str)
         self.assertEquals(x,y)
Пример #3
0
 def test_simple(self):
     self.assertEquals([10, 7, 4, 1, 0, 9, 8, 6, 3, 5, 2],
                       sa.get_suffix_array("mississippi"))
Пример #4
0
 def test_simple(self):
     self.assertEquals([10, 7, 4, 1, 0, 9, 8, 6, 3, 5, 2], sa.get_suffix_array("mississippi"))