def test_nanmad(): assert noise.mad(np.array([1, 2, 3, np.nan, np.nan, np.nan])) == 1.4826
def test_mad(): assert noise.mad(np.array([1, 2, 3])) == 1.4826