@Test
public void shouldAcceptMultipleRanges() {

    final Predicate<Number> predicate = parse("i = 0..2,4,6..9");
    assertFalse(predicate.test(Integer.MIN_VALUE));
    assertFalse(predicate.test(Double.NEGATIVE_INFINITY));
    assertFalse(predicate.test(-1));
    assertTrue(predicate.test(-0.1));
    assertTrue(predicate.test(0));
    assertTrue(predicate.test(0.1));
    assertTrue(predicate.test(1));
    assertTrue(predicate.test(4.5));
    assertFalse(predicate.test(5));
    assertTrue(predicate.test(6.1));
    assertTrue(predicate.test(9.9));
    assertFalse(predicate.test(Integer.MAX_VALUE));
    assertFalse(predicate.test(Double.POSITIVE_INFINITY));
}