def test_signature_length(): """Signatures should have correct dimension""" dim = 100 mh = MinHashSignature(dim) assert dim == len(mh.sign(randset()))
def test_signature_length(): """Signatures should have correct dimension""" dim = 100 mh = MinHashSignature(dim) assert dim == len(mh.sign(randset()))
def test_consistent_signature(): """Signatures should be consistent""" mh = MinHashSignature(100) s = randset() assert mh.sign(s) == mh.sign(s)
def test_consistent_signature(): """Signatures should be consistent""" mh = MinHashSignature(100) s = randset() assert mh.sign(s) == mh.sign(s)