def test_2d_dat(self, backend, elems, y):
        """Set both components of a vector-valued Dat to a scalar value."""
        kernel_2d_wo = """void kernel_2d_wo(unsigned int* x) {
          x[0] = 42; x[1] = 43;
        }"""
        op2.par_loop(op2.Kernel(kernel_2d_wo, "kernel_2d_wo"),
                     elems, y(op2.WRITE))
        assert all(map(lambda x: all(x == [42, 43]), y.data))
dataset/ETHPy150Open OP2/PyOP2/test/unit/test_direct_loop.py/TestDirectLoop.test_2d_dat/original