diff options
| author | Horus3 | 2015-03-19 16:41:39 +0100 |
|---|---|---|
| committer | Horus3 | 2015-03-19 16:41:39 +0100 |
| commit | 77b167ceae8904d827571a0ba7bfa13fac28a40e (patch) | |
| tree | dc320a8b89911686ebc7af79e2335968aa488e38 /utilities_test.go | |
| parent | e14cf986a916e1a7361b058224ef3badd3aad776 (diff) | |
| download | freemail-77b167ceae8904d827571a0ba7bfa13fac28a40e.tar.gz | |
Regression.
Diffstat (limited to 'utilities_test.go')
| -rw-r--r-- | utilities_test.go | 16 |
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) + } +} |
