예제 #1
0
 def test_pure_murmur2(self):
     data = [b'', b'testing', b'PEACH!', b'Gorz!',
             b'987654321', b'_!!_', b'CRINOID']
     expect = [275646681, 2291530147, 2546348827, 1742407956,
               577579727, 2335345241, 3603193626]
     for d, e in zip(data, expect):
         self.assertEqual(e, pure_murmur2(bytearray(d)))
예제 #2
0
 def test_pure_murmur2(self):
     data = ['', 'testing', 'PEACH!', 'Gorz!',
             '987654321', '_!!_', 'CRINOID']
     expect = [275646681, 2291530147, 2546348827, 1742407956,
               577579727, 2335345241, 3603193626]
     for d, e in zip(data, expect):
         self.assertEqual(e, pure_murmur2(bytearray(d)))