Add test for Issue #2

This commit is contained in:
Ian Coleman 2017-06-15 12:33:52 +10:00
parent 202477781d
commit c888c7b782

View File

@ -24,3 +24,17 @@ func TestToCamel(t *testing.T) {
} }
} }
} }
func TestToLowerCamel(t *testing.T) {
cases := [][]string{
[]string{ "foo-bar", "fooBar" },
}
for _, i := range cases {
in := i[0]
out := i[1]
result := ToLowerCamel(in)
if result != out {
t.Error("'" + result + "' != '" + out + "'")
}
}
}