Skip to content

Commit 1d72012

Browse files
committed
Adds missing keccak test.
1 parent 28d1354 commit 1d72012

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/hash.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ describe('keccak', function() {
4848
keccak((<unknown>msg) as Buffer)
4949
})
5050
})
51+
it('should error if provided incorrect bits', function() {
52+
const msg = '0x3c9229289a6125f7fdf1885a77bb12c37a8d3b4962d936f7e3084dece32a3ca1'
53+
assert.throws(function() {
54+
keccak(toBuffer(msg), 1024)
55+
})
56+
})
5157
})
5258

5359
describe('keccak256', function() {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy