def test_DopplerPoly_computeDistance2(): ''' Test distance for first order polynomial doppler ''' doppler = DopplerPoly(1000., 77., (1., 1.)) assert abs(0. - doppler.computeDistanceM(0.)) < EPSILON assert abs(1.5 - doppler.computeDistanceM(1.)) < EPSILON assert abs(7.5 - doppler.computeDistanceM(3.)) < EPSILON
def test_DopplerPoly_computeDistance0(): ''' Test distance for empty polynomial doppler ''' doppler = DopplerPoly(1000., 77., ()) assert abs(0. - doppler.computeDistanceM(0.)) < EPSILON assert abs(0. - doppler.computeDistanceM(1.5)) < EPSILON assert abs(0. - doppler.computeDistanceM(3.)) < EPSILON