Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
self.assertEqual(a.digest(), b.digest())
self.assertEqual(a.intdigest(), xxhash.xxh3_128_intdigest(s, seed=1))
self.assertEqual(a.intdigest(), xxhash.xxh3_128_intdigest(s, seed=2**64+1))
self.assertEqual(a.digest(), xxhash.xxh3_128_digest(s, seed=1))
self.assertEqual(a.digest(), xxhash.xxh3_128_digest(s, seed=2**64+1))
self.assertEqual(a.hexdigest(), xxhash.xxh3_128_hexdigest(s, seed=1))
self.assertEqual(a.hexdigest(), xxhash.xxh3_128_hexdigest(s, seed=2**64+1))
a = xxhash.xxh3_128(s, seed=2**65-1)
b = xxhash.xxh3_128(s, seed=2**66-1)
self.assertEqual(a.seed, b.seed)
self.assertEqual(a.intdigest(), b.intdigest())
self.assertEqual(a.hexdigest(), b.hexdigest())
self.assertEqual(a.digest(), b.digest())
self.assertEqual(a.intdigest(), xxhash.xxh3_128_intdigest(s, seed=2**65-1))
self.assertEqual(a.intdigest(), xxhash.xxh3_128_intdigest(s, seed=2**66-1))
self.assertEqual(a.digest(), xxhash.xxh3_128_digest(s, seed=2**65-1))
self.assertEqual(a.digest(), xxhash.xxh3_128_digest(s, seed=2**66-1))
self.assertEqual(a.hexdigest(), xxhash.xxh3_128_hexdigest(s, seed=2**65-1))
self.assertEqual(a.hexdigest(), xxhash.xxh3_128_hexdigest(s, seed=2**66-1))
def test_xxh3_128_intdigest(self):
self.assertEqual(xxhash.xxh3_128_intdigest('a'), 261405998108491818971263271758317650375)
self.assertEqual(xxhash.xxh3_128_intdigest('a', 0), 261405998108491818971263271758317650375)
self.assertEqual(xxhash.xxh3_128_intdigest('a', 1), 221761182003473397082459951453593934334)
self.assertEqual(xxhash.xxh3_128_intdigest('a', 2**64-1), 27271460198162016509417365156422942256)
def test_xxh3_128_intdigest(self):
self.assertEqual(xxhash.xxh3_128_intdigest('a'), 261405998108491818971263271758317650375)
self.assertEqual(xxhash.xxh3_128_intdigest('a', 0), 261405998108491818971263271758317650375)
self.assertEqual(xxhash.xxh3_128_intdigest('a', 1), 221761182003473397082459951453593934334)
self.assertEqual(xxhash.xxh3_128_intdigest('a', 2**64-1), 27271460198162016509417365156422942256)
def test_xxh3_128_intdigest(self):
self.assertEqual(xxhash.xxh3_128_intdigest('a'), 261405998108491818971263271758317650375)
self.assertEqual(xxhash.xxh3_128_intdigest('a', 0), 261405998108491818971263271758317650375)
self.assertEqual(xxhash.xxh3_128_intdigest('a', 1), 221761182003473397082459951453593934334)
self.assertEqual(xxhash.xxh3_128_intdigest('a', 2**64-1), 27271460198162016509417365156422942256)
self.assertEqual(a.digest(), b.digest())
self.assertEqual(a.intdigest(), xxhash.xxh3_128_intdigest(s, seed=0))
self.assertEqual(a.intdigest(), xxhash.xxh3_128_intdigest(s, seed=2**64))
self.assertEqual(a.digest(), xxhash.xxh3_128_digest(s, seed=0))
self.assertEqual(a.digest(), xxhash.xxh3_128_digest(s, seed=2**64))
self.assertEqual(a.hexdigest(), xxhash.xxh3_128_hexdigest(s, seed=0))
self.assertEqual(a.hexdigest(), xxhash.xxh3_128_hexdigest(s, seed=2**64))
a = xxhash.xxh3_128(s, seed=1)
b = xxhash.xxh3_128(s, seed=2**64+1)
self.assertEqual(a.seed, b.seed)
self.assertEqual(a.intdigest(), b.intdigest())
self.assertEqual(a.hexdigest(), b.hexdigest())
self.assertEqual(a.digest(), b.digest())
self.assertEqual(a.intdigest(), xxhash.xxh3_128_intdigest(s, seed=1))
self.assertEqual(a.intdigest(), xxhash.xxh3_128_intdigest(s, seed=2**64+1))
self.assertEqual(a.digest(), xxhash.xxh3_128_digest(s, seed=1))
self.assertEqual(a.digest(), xxhash.xxh3_128_digest(s, seed=2**64+1))
self.assertEqual(a.hexdigest(), xxhash.xxh3_128_hexdigest(s, seed=1))
self.assertEqual(a.hexdigest(), xxhash.xxh3_128_hexdigest(s, seed=2**64+1))
a = xxhash.xxh3_128(s, seed=2**65-1)
b = xxhash.xxh3_128(s, seed=2**66-1)
self.assertEqual(a.seed, b.seed)
self.assertEqual(a.intdigest(), b.intdigest())
self.assertEqual(a.hexdigest(), b.hexdigest())
self.assertEqual(a.digest(), b.digest())
self.assertEqual(a.intdigest(), xxhash.xxh3_128_intdigest(s, seed=2**65-1))
self.assertEqual(a.intdigest(), xxhash.xxh3_128_intdigest(s, seed=2**66-1))
self.assertEqual(a.digest(), xxhash.xxh3_128_digest(s, seed=2**65-1))
self.assertEqual(a.digest(), xxhash.xxh3_128_digest(s, seed=2**66-1))
self.assertEqual(a.hexdigest(), xxhash.xxh3_128_hexdigest(s, seed=2**65-1))