def test_record_write_1d_array(self):
        rec = self.samplerec1darr.copy()
        nbrecord = numpy_support.from_dtype(recordwitharray)
        cfunc = self.get_cfunc(record_write_array, (nbrecord,))

        cfunc(rec)
        expected = self.samplerec1darr.copy()
        expected['g'] = 2
        expected['h'][0] = 3.0
        expected['h'][1] = 4.0

        np.testing.assert_equal(expected, rec)
Test writing to a 1D array within a structured type
dataset/ETHPy150Open numba/numba/numba/cuda/tests/cudapy/test_record_dtype.py/TestRecordDtype.test_record_write_1d_array