@Test
public void convertDistance2() {

    Convert.metric = false;
    assertEquals("3200 feet", Convert.distance2(1000, 2));
    assertEquals("3280 feet", Convert.distance2(1000, 3));
    assertEquals("1 mile", Convert.distance2(1609.34, 1));
    assertEquals("1.0 miles", Convert.distance2(1609.34, 2));
    assertEquals("", Convert.distance2(Double.NaN, 1));
    assertEquals("Infinity", Convert.distance2(Double.POSITIVE_INFINITY, 1));
    assertEquals("-Infinity", Convert.distance2(Double.NEGATIVE_INFINITY, 1));
}