def test_hashing_produces_example_result(self): from e3fp.fingerprint.fprinter import hash_int64_array self.assertEqual(hash_int64_array(np.array([42], dtype=np.int64)), 1871679806)
def test_hashing_wrong_dtype_fails2(self): from e3fp.fingerprint.fprinter import hash_int64_array with self.assertRaises(TypeError): hash_int64_array(np.arange(3, dtype=np.int32))