'Test reading from a 1D array within a structured type'

def test_record_read_1d_array(self):

    rec = self.samplerec1darr.copy()
    rec['h'][0] = 4.0
    rec['h'][1] = 5.0
    nbrecord = numpy_support.from_dtype(recordwitharray)
    cfunc = self.get_cfunc(record_read_array, (nbrecord,))
    arr = np.zeros(2, dtype=rec['h'].dtype)
    cfunc(rec, arr)
    np.testing.assert_equal(rec['h'], arr)
