mirror of
https://github.com/shekhargulati/strman-java.git
synced 2026-10-12 00:23:56 +00:00
Fixed #27. Added support for rightTrim function
This commit is contained in:
@@ -612,4 +612,11 @@ public class StrmanTest {
|
||||
assertThat(rightPad("10000", "0", 5), equalTo("10000"));
|
||||
assertThat(rightPad("10000000", "0", 5), equalTo("10000000"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void rightTrim_shouldRemoveSpacesFromTheRight() throws Exception {
|
||||
assertThat(rightTrim("strman "), equalTo("strman"));
|
||||
assertThat(rightTrim(" strman"), equalTo(" strman"));
|
||||
assertThat(rightTrim("strman"), equalTo("strman"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user