mirror of
https://github.com/shekhargulati/strman-java.git
synced 2026-10-21 23:43:50 +00:00
Resolved #81
This commit is contained in:
@@ -1168,4 +1168,12 @@ public class StrmanTests {
|
||||
assertThat(dasherize(""), equalTo(""));
|
||||
assertThat(dasherize(null), equalTo(""));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void swapCase_shouldSwapCaseOfCharacters() throws Exception {
|
||||
assertThat(swapCase("AaBbCcDdEe"), equalTo("aAbBcCdDeE"));
|
||||
assertThat(swapCase("Hello World"), equalTo("hELLO wORLD"));
|
||||
assertThat(swapCase(""), equalTo(""));
|
||||
assertThat(swapCase(null), equalTo(""));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user