mirror of
https://github.com/shekhargulati/strman-java.git
synced 2026-10-13 09:03:56 +00:00
Fixed #37. Added support for toDeCamelCase function
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user