Fixed #14. Added support for leftTrim function

This commit is contained in:
Shekhar Gulati
2016-05-21 18:05:13 +05:30
parent ce81fb1070
commit 19fed40aac
2 changed files with 16 additions and 1 deletions
+6
View File
@@ -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 "));
}
}