|
|
|
@ -167,6 +167,13 @@ public class StringSequenceTests {
|
|
|
|
|
assertThat(a).isEqualTo(b).isNotEqualTo(c);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void notEqualsWhenSequencesOfDifferentLength() {
|
|
|
|
|
StringSequence a = new StringSequence("abcd");
|
|
|
|
|
StringSequence b = new StringSequence("ef");
|
|
|
|
|
assertThat(a).isNotEqualTo(b);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void startsWithWhenExactMatch() {
|
|
|
|
|
assertThat(new StringSequence("abc").startsWith("abc")).isTrue();
|
|
|
|
|