Skip to content

Commit 14a0b35

Browse files
committed
digest_test
1 parent 6b3465a commit 14a0b35

File tree

2 files changed

+22
-17
lines changed

2 files changed

+22
-17
lines changed

jscomp/test/digest_test.js

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/test/digest_test.res

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
let f = x => \"@@"(Digest.to_hex, Digest.string(x))
22

33
\"@@"(
4-
Mt.from_pair_suites(__MODULE__),
4+
l => Mt.from_pair_suites(__MODULE__, l),
55
\"@"(
66
{
77
open Mt
@@ -188,12 +188,15 @@ let f = x => \"@@"(Digest.to_hex, Digest.string(x))
188188
"b325dc1c6f5e7a2b7cf465b9feab7948",
189189
]
190190

191-
Ext_array_test.range(0, 129)
192-
|> Array.map(i => (
193-
Belt.Int.toString(i),
194-
_ => Mt.Eq(\"@@"(Digest.to_hex, \"@@"(Digest.string, String.make(i, 'a'))), ref[i]),
195-
))
196-
|> Array.to_list
191+
Array.to_list(
192+
Array.map(
193+
i => (
194+
Belt.Int.toString(i),
195+
_ => Mt.Eq(\"@@"(Digest.to_hex, \"@@"(Digest.string, String.make(i, 'a'))), ref[i]),
196+
),
197+
Ext_array_test.range(0, 129),
198+
),
199+
)
197200
},
198201
),
199202
)

0 commit comments

Comments
 (0)