MCPcopy Create free account
hub / github.com/tensorflow/datasets / test_ints

Method test_ints

tensorflow_datasets/core/hashing_test.py:24–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22class HashingTest(testing.TestCase):
23
24 def test_ints(self):
25 hasher = hashing.Hasher(salt='')
26 res = hasher.hash_key(0)
27 self.assertEqual(res, 276215275525073243129443018166533317850)
28 res = hasher.hash_key(123455678901234567890)
29 self.assertEqual(res, 6876359009333865997613257802033240610)
30
31 def test_ascii(self):
32 hasher = hashing.Hasher(salt='')

Callers

nothing calls this directly

Calls 1

hash_keyMethod · 0.95

Tested by

no test coverage detected