Fixed #37. Added support for toDeCamelCase function

This commit is contained in:
Shekhar Gulati
2016-05-22 19:00:39 +05:30
parent 09793e71f5
commit 4bff84d869
2 changed files with 18 additions and 0 deletions
+6
View File
@@ -740,4 +740,10 @@ public class StrmanTest {
assertThat(toCamelCase("c"), equalTo("c"));
}
@Test
public void toDeCamelCase_shouldDeCamelCaseAString() throws Exception {
assertThat(toDecamelize("camelCase", null), equalTo("camel case"));
assertThat(toDecamelize("camelCase", "_"), equalTo("camel_case"));
}
}