@Ignore("NaN behavior TBD") @Test @Throws(Exception::class) fun testLinearAzimuth_WithNaN() { val begin = Location(Double.NaN, Double.NaN) val end = Location(34.2, -119.2) val azimuth: Double = begin.linearAzimuth(end) assertTrue("expecting NaN", java.lang.Double.isNaN(azimuth)) }
Ensures linear azimuth is NaN when NaN members are used .