'Test that a unit kernel with three elements returns the same array
(except when boundary is None). This version includes a NaN value in
the original array.'

@pytest.mark.parametrize((option_names + (u'inval', u'outval')), options_unity1withnan)
def test_unity_1_withnan(self, boundary, nan_treatment, normalize_kernel, inval, outval):

    x = inval
    y = np.array([1.0], dtype=u'float64')
    z = convolve_fft(x, y, boundary=boundary, nan_treatment=nan_treatment, normalize_kernel=normalize_kernel)
    if hasattr(np, u'float16'):
        assert_array_almost_equal_nulp(np.asarray(z, dtype=np.float16), np.array([1.0, 0.0, 3.0], dtype=np.float16), 10)
    assert_allclose(z, outval, atol=1e-14)
