diff options
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") + } +} |
