aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-28 22:24:37 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-28 22:24:37 -0800
commit0504bb89848255c64bee3ba5a36601444de0c97c (patch)
tree374d7408eee064665c7328046956aadb2ff3a572 /test
parentd726a17aca6a0b7e98ee86c193158e7860bb0834 (diff)
downloadbun-0504bb89848255c64bee3ba5a36601444de0c97c.tar.gz
bun-0504bb89848255c64bee3ba5a36601444de0c97c.tar.zst
bun-0504bb89848255c64bee3ba5a36601444de0c97c.zip
Expose the rest of RIPEMD160
Diffstat (limited to 'test')
-rw-r--r--test/bun.js/crypto.test.js16
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'],