summaryrefslogtreecommitdiff
path: root/utilities_test.go
diff options
context:
space:
mode:
authorhorus_arch2015-03-20 01:01:30 +0100
committerhorus_arch2015-03-20 01:01:30 +0100
commit039fb0ce71d132a1dfe93b516bc5953dcb61285e (patch)
tree0680bf2d0d42a7c8f4f5dfe0b579277edfc38198 /utilities_test.go
parent77b167ceae8904d827571a0ba7bfa13fac28a40e (diff)
downloadfreemail-039fb0ce71d132a1dfe93b516bc5953dcb61285e.tar.gz
Bundling functionality in server.go and improving code flow.
Diffstat (limited to 'utilities_test.go')
-rw-r--r--utilities_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/utilities_test.go b/utilities_test.go
index a8d291b..61d0b27 100644
--- a/utilities_test.go
+++ b/utilities_test.go
@@ -14,3 +14,12 @@ func TestMd5Hash(t *testing.T) {
t.Fatal("Expected %s as hash. Got %s.", hash, testHash)
}
}
+
+func TestCompareStrings(t *testing.T) {
+ if !CompareStrings("foo", "foo", "foo") {
+ t.Fatal("All strings are equal. Expected true.")
+ }
+ if CompareStrings("bar", "foo", "hello world", "523") {
+ t.Fatal("Strings are not equal. Exptected false")
+ }
+}