@Test
public void parseErrors() throws ParseException {

    assertEquals(0, LaserMeasurement.parse("100,NaN", true, false).size());
    assertEquals(0, LaserMeasurement.parse("100,Infinity", true, false).size());
    assertEquals(0, LaserMeasurement.parse("100,-Infinity", true, false).size());
    assertEquals(0, LaserMeasurement.parse("100,-100,", true, false).size());
    assertEquals(0, LaserMeasurement.parse("100,-100,333", true, false).size());
    assertEquals(1, LaserMeasurement.parse("100,-100\nXXXX", true, false).size());
    assertEquals(0, LaserMeasurement.parse("100,ZZZ", true, false).size());
    assertEquals(0, LaserMeasurement.parse("100p 200q", true, false).size());
    assertEquals(0, LaserMeasurement.parse("100 200ft", true, false).size());
    assertEquals(0, LaserMeasurement.parse("100 200m", false, false).size());
    assertEquals(0, LaserMeasurement.parse("100 200mm", true, false).size());
    assertEquals(0, LaserMeasurement.parse("100 200mm", false, false).size());
}