'scalar to 1d slice assignment'

def test_1d_slicing_broadcast(self, flags=enable_pyobj_flags):

    pyfunc = slicing_1d_usecase_set
    arraytype = types.Array(types.int32, 1, 'C')
    argtys = (arraytype, types.int16, types.int32, types.int32, types.int32)
    cr = compile_isolated(pyfunc, argtys, flags=flags)
    cfunc = cr.entry_point
    N = 10
    arg = np.arange(N, dtype='i4')
    val = 42
    bounds = [0, 2, (N - 2), N, (N + 1), (N + 3), (-2), ((- N) + 2), (- N), ((- N) - 1), ((- N) - 3)]
    for (start, stop) in itertools.product(bounds, bounds):
        for step in (1, 2, (-1), (-2)):
            args = (val, start, stop, step)
            pyleft = pyfunc(arg.copy(), *args)
            cleft = cfunc(arg.copy(), *args)
            self.assertPreciseEqual(pyleft, cleft)
