assertThat(new LineRange(12, 15).toString()).isEqualTo("[12-15]");
}
@Test
public void testEquals() throws Exception {
LineRange range = new LineRange(12, 15);
assertThat(range).isEqualTo(range);
assertThat(range).isEqualTo(new LineRange(12, 15));
assertThat(range).isNotEqualTo(new LineRange(12, 2000));
assertThat(range).isNotEqualTo(new LineRange(1000, 2000));
assertThat(range).isNotEqualTo(null);
assertThat(range).isNotEqualTo(new StringBuffer());
}