Testing string to lower

This commit is contained in:
Scott
2016-01-25 21:50:02 +11:00
parent 49585f40aa
commit 56c5860df8

View File

@@ -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("...")
}
}