Browse Source

Add test for Issue #2

tags/v0.1.0
Ian Coleman 7 years ago
parent
commit
c888c7b782
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      camel_test.go

+ 14
- 0
camel_test.go 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 + "'")
}
}
}

Loading…
Cancel
Save