/** Tests rapidParseInt for positive and negative numbers, as well as non-digit suffixes */
@Test
public void testRapidParseInt() {
final OpticalDuplicateFinder opticalDuplicateFinder = new OpticalDuplicateFinder();
for (int i = -100; i < 100; i++) {
Assert.assertEquals(opticalDuplicateFinder.rapidParseInt(Integer.toString(i)), i);
// trailing characters
Assert.assertEquals(opticalDuplicateFinder.rapidParseInt(Integer.toString(i)+"A"), i);
Assert.assertEquals(opticalDuplicateFinder.rapidParseInt(Integer.toString(i)+"ACGT"), i);
Assert.assertEquals(opticalDuplicateFinder.rapidParseInt(Integer.toString(i)+".1"), i);