mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
f626b04ebe
Original: c5e6e015b5
8 lines
248 B
TypeScript
8 lines
248 B
TypeScript
import { assertEqual, test } from "../testing/mod.ts";
|
|
import { Sha1 } from "./sha1.ts";
|
|
|
|
test(function testSha1() {
|
|
const sha1 = new Sha1();
|
|
sha1.update("abcde");
|
|
assertEqual(sha1.toString(), "03de6c570bfe24bfc328ccd7ca46b76eadaf4334");
|
|
});
|