Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 3
0
 def test_simple(self):
     self.assertEquals([10, 7, 4, 1, 0, 9, 8, 6, 3, 5, 2],
                       sa.get_suffix_array("mississippi"))
Exemplo n.º 4
0
 def test_simple(self):
     self.assertEquals([10, 7, 4, 1, 0, 9, 8, 6, 3, 5, 2], sa.get_suffix_array("mississippi"))