mirror of
https://github.com/shekhargulati/strman-java.git
synced 2026-10-07 03:53:55 +00:00
Fixed #14. Added support for leftTrim function
This commit is contained in:
@@ -475,4 +475,10 @@ public class StrmanTest {
|
||||
assertThat(lastIndexOf(value, "R", false), equalTo(11));
|
||||
assertThat(lastIndexOf(value, "T", false), equalTo(-1));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void leftTrim_shouldRemoveSpacesOnLeft() throws Exception {
|
||||
assertThat(leftTrim(" strman"), equalTo("strman"));
|
||||
assertThat(leftTrim(" strman "), equalTo("strman "));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user