diff options
| author | horus_arch | 2015-03-20 01:01:30 +0100 |
|---|---|---|
| committer | horus_arch | 2015-03-20 01:01:30 +0100 |
| commit | 039fb0ce71d132a1dfe93b516bc5953dcb61285e (patch) | |
| tree | 0680bf2d0d42a7c8f4f5dfe0b579277edfc38198 /utilities_test.go | |
| parent | 77b167ceae8904d827571a0ba7bfa13fac28a40e (diff) | |
| download | freemail-039fb0ce71d132a1dfe93b516bc5953dcb61285e.tar.gz | |
Bundling functionality in server.go and improving code flow.
Diffstat (limited to 'utilities_test.go')
| -rw-r--r-- | utilities_test.go | 9 |
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") + } +} |
