From 0504bb89848255c64bee3ba5a36601444de0c97c Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Wed, 28 Dec 2022 22:24:37 -0800 Subject: Expose the rest of RIPEMD160 --- test/bun.js/crypto.test.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'test/bun.js/crypto.test.js') 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'], -- cgit v1.2.3