summaryrefslogtreecommitdiff
path: root/net/sha1_test.ts
diff options
context:
space:
mode:
authorYusuke Sakurai <kerokerokerop@gmail.com>2019-01-07 04:26:18 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-01-06 14:26:18 -0500
commit7907bfc4c91f5287237d87571d1933db4ae7a4fa (patch)
tree6c14062ed9e08bb7543053b760dacd043acd874d /net/sha1_test.ts
parentc164e696d7f924fe785421058d834934b7014429 (diff)
Add web socket module (denoland/deno_std#84)
Original: https://github.com/denoland/deno_std/commit/2606e295c77fb9d5796d527ed15f2dab3de1a696
Diffstat (limited to 'net/sha1_test.ts')
-rw-r--r--net/sha1_test.ts8
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")
+});