}
@Test
public void test_equals() {
StringTextComparator baseCmp = StringTextComparator.IGNORE_WHITESPACE;
RollingHashSequence<StringText> a = RollingHashSequence.wrap(new StringText("line0 \n line1 \n line2"), baseCmp, 1);
RollingHashSequence<StringText> b = RollingHashSequence.wrap(new StringText("line0 \n line1 \n line2 \n line3"), baseCmp, 1);
RollingHashSequenceComparator<StringText> cmp = new RollingHashSequenceComparator<StringText>(baseCmp);
assertThat(cmp.equals(a, 0, b, 0)).isTrue();
assertThat(cmp.equals(a, 1, b, 1)).isTrue();
assertThat(cmp.equals(a, 2, b, 2)).isFalse();