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

def test_record_read_array(self):

    nbval = np.recarray(1, dtype=recordwitharray)
    nbval[0].h[0] = 15.0
    nbval[0].h[1] = 25.0
    nbrecord = numpy_support.from_dtype(recordwitharray)
    cfunc = self.get_cfunc(record_read_array0, (nbrecord,))
    res = cfunc(nbval[0])
    np.testing.assert_equal(res, nbval[0].h[0])
    cfunc = self.get_cfunc(record_read_array1, (nbrecord,))
    res = cfunc(nbval[0])
    np.testing.assert_equal(res, nbval[0].h[1])
