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

Method test_ascii

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

Source from the content-addressed store, hash-verified

29 self.assertEqual(res, 6876359009333865997613257802033240610)
30
31 def test_ascii(self):
32 hasher = hashing.Hasher(salt='')
33 res = hasher.hash_key('foo')
34 self.assertEqual(res, 229609063533823256041787889330700985560)
35
36 def test_backslash(self):
37 hasher = hashing.Hasher(salt='')

Callers

nothing calls this directly

Calls 1

hash_keyMethod · 0.95

Tested by

no test coverage detected