mirror of
https://github.com/shekhargulati/strman-java.git
synced 2026-10-12 16:43:56 +00:00
Fixed #22. Added support for removeSpaces function
This commit is contained in:
@@ -560,4 +560,15 @@ public class StrmanTest {
|
||||
|
||||
Arrays.stream(fixture).forEach(el -> assertThat(removeRight(el, "BAR", false), equalTo("foo")));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void removeSpaces_shouldRemoveSpacesInTheString() throws Exception {
|
||||
final String[] fixture = {
|
||||
"foo bar",
|
||||
"foo bar ",
|
||||
" foo bar",
|
||||
" foo bar "
|
||||
};
|
||||
Arrays.stream(fixture).forEach(el -> assertThat(removeSpaces(el), equalTo("foobar")));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user