def test_basic17(self):
        """two rel index boundary test, add const"""
        def kernel(a):
            return a[0, 0] + a[2, 0] + 1.
        # ----------------------------------------------------------------------
        # Autogenerated kernel

        def __kernel(a, neighborhood):
            self.check_stencil_arrays(a, neighborhood=neighborhood)
            __retdtype = kernel(a)
            __b0 = np.full(a.shape, 0, dtype=type(__retdtype))
            for __b in range(0, a.shape[1]):
                for __a in range(0, a.shape[0] - 2):
                    __b0[__a, __b] = (a[__a + 0, __b + 0] +
                                      a[__a + 2, __b + 0] + 1.0)
            return __b0
        # ----------------------------------------------------------------------

        a = np.arange(12).reshape(3, 4)
        expected = __kernel(a, None)
        self.check_against_expected(kernel, expected, a)
two rel index boundary test, add const
numba/tests/test_stencils.py