'Generic sequence to 1d slice assignment'

def check_1d_slicing_set_sequence(self, flags, seqty, seq):

    pyfunc = slicing_1d_usecase_set
    dest_type = types.Array(types.int32, 1, 'C')
    argtys = (dest_type, seqty, types.int32, types.int32, types.int32)
    cr = compile_isolated(pyfunc, argtys, flags=flags)
    cfunc = cr.entry_point
    N = 10
    k = len(seq)
    arg = np.arange(N, dtype=np.int32)
    args = (seq, 1, (((- N) + k) + 1), 1)
    expected = pyfunc(arg.copy(), *args)
    got = cfunc(arg.copy(), *args)
    self.assertPreciseEqual(expected, got)
    if (numpy_support.version != (1, 7)):
        args = (seq, 1, ((- N) + k), 1)
        with self.assertRaises(ValueError) as raises:
            cfunc(arg.copy(), *args)
