Commits

Anonymous committed 44cfd51

add another passing test

Comments (0)

Files changed (1)

hashfunctions/tests/test_murmur2.py

     c_murmur2 = None
 
 class TestMurmur2(TestCase):
+    def test_known_hash(self):
+        args = ('lkasjdfklajslku2i1op3u49puid', 89012738)
+        expect = 3680343784
+        self.assertEquals(murmur2(*args), expect)
+        self.assertEquals(c_murmur2(*args), expect)
+
     def test_murmur2(self):
         for i in xrange(100):
             KEYS = [