@Test
public void convertDistance() {

    Convert.metric = false;
    assertEquals("0 ft", Convert.distance(0.0));
    assertEquals("3 ft", Convert.distance(1.0));
    assertEquals("3.3 ft", Convert.distance(1.0, 1, true));
    assertEquals("3.3", Convert.distance(1.0, 1, false));
    assertEquals("", Convert.distance(Double.NaN));
    assertEquals("Infinity", Convert.distance(Double.POSITIVE_INFINITY));
}