From 56c5860df8d339f7e8065dcbd0cf20ddf14e4259 Mon Sep 17 00:00:00 2001 From: Scott Date: Mon, 25 Jan 2016 21:50:02 +1100 Subject: [PATCH] Testing string to lower --- common_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common_test.go b/common_test.go index 66750ca1..601331e0 100644 --- a/common_test.go +++ b/common_test.go @@ -54,3 +54,13 @@ func TestGetSHA256(t *testing.T) { t.Error(fmt.Sprintf("Test failed. Expected '%x'. Actual '%x'", expectedOutput, []byte(actualStr))) } } + +func TestStringToLower(t *testing.T) { + t.Parallel() + upperCaseString := "HEY MAN" + expectedResult := "hey man" + actualResult := StringToLower(upperCaseString) + if actualResult != expectedResult { + t.Error("...") + } +}