mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 06:58:11 -05:00
feat: failing test for long keccak (#11292)
This commit is contained in:
@@ -38,5 +38,10 @@ class TestKeccak(unittest.TestCase):
|
||||
out = Tensor(b"abc").keccak()
|
||||
self.assertEqual(bytes(out.tolist()), bytearray.fromhex("3a985da74fe225b2 045c172d6bd390bd 855f086e3e9d525b 46bfe24511431532"))
|
||||
|
||||
@unittest.expectedFailure
|
||||
def test_long(self):
|
||||
out = Tensor(b"\x00" * 4096).keccak()
|
||||
self.assertEqual(bytes(out.tolist()), hashlib.shake_128(b"\x00" * 4096).digest(16))
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user