summaryrefslogtreecommitdiff
path: root/utilities_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'utilities_test.go')
-rw-r--r--utilities_test.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/utilities_test.go b/utilities_test.go
new file mode 100644
index 0000000..a8d291b
--- /dev/null
+++ b/utilities_test.go
@@ -0,0 +1,16 @@
+// +build all general
+
+package main
+
+import (
+ "testing"
+)
+
+func TestMd5Hash(t *testing.T) {
+ hash := "f9d08276bc85d30d578e8883f3c7e843"
+ testHash := Md5Hash("md5hash")
+
+ if hash != testHash {
+ t.Fatal("Expected %s as hash. Got %s.", hash, testHash)
+ }
+}