From 039fb0ce71d132a1dfe93b516bc5953dcb61285e Mon Sep 17 00:00:00 2001 From: horus_arch Date: Fri, 20 Mar 2015 01:01:30 +0100 Subject: Bundling functionality in server.go and improving code flow. --- utilities_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'utilities_test.go') 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") + } +} -- cgit v1.2.3