def test_2d_dat(self, backend, elems, y):
        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))
Check we can export a file without errors.
dataset/ETHPy150Open OP2/PyOP2/test/unit/test_direct_loop.py/TestDirectLoop.test_2d_dat--crossover with--dataset/ETHPy150Open google/grr/grr/lib/export_utils_test.py/TestExports.testExportFile