from unittest import TestCase from benchmark.rabin_karp import rabin_karp_search class Test_rabin_karp_search(TestCase): # distances_true = {1: [0, 70, 54, 65, 28, 51, 66], 3: [1], 4: [0, 0, 0, 0, 0, 0, 1], 5: [71, 55, 66, 29, 52, 67]} # distances_false = {1: [1, 0, 0, 0, 0, 0, 0], 3: [0], 4: [6, 5, 4, 3, 2, 1, 0], 5: [0, 0, 0, 0, 0, 0]} def test_rabin_karp_search_1(self): assert rabin_karp_search(pat='', txt=']vzK