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

Method test_backslash

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

Source from the content-addressed store, hash-verified

34 self.assertEqual(res, 229609063533823256041787889330700985560)
35
36 def test_backslash(self):
37 hasher = hashing.Hasher(salt='')
38 res2 = hasher.hash_key('x/y')
39 res1 = hasher.hash_key('x\\y')
40 self.assertEqual(res1, res2)
41 self.assertEqual(res1, 122546703782554533059483853573887619473)
42
43
44if __name__ == '__main__':

Callers

nothing calls this directly

Calls 1

hash_keyMethod · 0.95

Tested by

no test coverage detected