From c888c7b782789b368b0e0119e263b7e3af8aa5f1 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Thu, 15 Jun 2017 12:33:52 +1000 Subject: [PATCH] Add test for Issue #2 --- camel_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/camel_test.go b/camel_test.go index 5f88b84..7978623 100644 --- a/camel_test.go +++ b/camel_test.go @@ -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 + "'") + } + } +}