'Test that the different modes are producing the correct results using
a uniform kernel with three elements'

@pytest.mark.parametrize(u'boundary', BOUNDARY_OPTIONS)
def test_uniform_3(self, boundary):

    x = np.array([1.0, 0.0, 3.0], dtype=u'>f8')
    y = np.array([1.0, 1.0, 1.0], dtype=u'>f8')
    z = convolve(x, y, boundary=boundary, normalize_kernel=False)
    if (boundary is None):
        assert np.all((z == np.array([0.0, 4.0, 0.0], dtype=u'>f8')))
    elif (boundary == u'fill'):
        assert np.all((z == np.array([1.0, 4.0, 3.0], dtype=u'>f8')))
    elif (boundary == u'wrap'):
        assert np.all((z == np.array([4.0, 4.0, 4.0], dtype=u'>f8')))
    else:
        assert np.all((z == np.array([2.0, 4.0, 6.0], dtype=u'>f8')))
