예제 #1
0
 def test_count(self):
     m = MinHash(hashfunc=fake_hash_func)
     m.update(11)
     m.update(123)
     m.update(92)
     m.update(98)
     m.update(123218)
     m.update(32)
     lm = LeanMinHash(m)
     c = lm.count()
     self.assertGreaterEqual(c, 0)
예제 #2
0
 def test_count(self):
     m = MinHash(hashobj=FakeHash)
     m.update(11)
     m.update(123)
     m.update(92)
     m.update(98)
     m.update(123218)
     m.update(32)
     lm = LeanMinHash(m)
     c = lm.count()
     self.assertGreaterEqual(c, 0)