diff options
Diffstat (limited to 'test/bun.js/crypto.test.js')
-rw-r--r-- | test/bun.js/crypto.test.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/test/bun.js/crypto.test.js b/test/bun.js/crypto.test.js index c489e11c1..30a0f227d 100644 --- a/test/bun.js/crypto.test.js +++ b/test/bun.js/crypto.test.js @@ -3,17 +3,31 @@ import { MD5, MD4, SHA1, + SHA224, SHA256, SHA384, SHA512, SHA512_256, + RIPEMD160, gc, } from "bun"; import { it, expect, describe } from "bun:test"; import { readFileSync } from "fs"; +const HashClasses = [ + MD5, + MD4, + SHA1, + SHA224, + SHA256, + SHA384, + SHA512, + SHA512_256, + RIPEMD160, +]; + describe("crypto", () => { - for (let Hash of [MD5, MD4, SHA1, SHA256, SHA384, SHA512, SHA512_256]) { + for (let Hash of HashClasses) { for (let [input, label] of [ ["hello world", '"hello world"'], ["hello world".repeat(20).slice(), '"hello world" x 20'], |