Skip to content

Commit

Permalink
Adding two safety StringUtils tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rocboronat committed Jul 15, 2015
1 parent 4593c31 commit c8ac3a7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/StringUtilsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ public void init() {
su = new StringUtils();
}

@Test
public void shouldReturnEmpty1() {
assertEquals("", su.replaceLast("", "", ""));
}

@Test
public void shouldReturnEmpty2() {
assertEquals("", su.replaceLast("", "ll", "xx"));
}

@Test
public void shouldReturnHeo() {
assertEquals("heo", su.replaceLast("hello", "ll", ""));
Expand Down

0 comments on commit c8ac3a7

Please sign in to comment.