Add test for Issue #2
This commit is contained in:
parent
202477781d
commit
c888c7b782
@ -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 + "'")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user