diff options
Diffstat (limited to 'net/sha1_test.ts')
| -rw-r--r-- | net/sha1_test.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/sha1_test.ts b/net/sha1_test.ts new file mode 100644 index 000000000..1d3673c43 --- /dev/null +++ b/net/sha1_test.ts @@ -0,0 +1,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") +}); |
