summaryrefslogtreecommitdiff
path: root/ws/sha1_test.ts
blob: b385f18dae986d4a8d0b353f4631c615d6535d5e (plain)
1
2
3
4
5
6
7
8
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");
});