'Tests that comparison of NestedArrays by key is working correctly. If
the two NestedArrays in recordwith2arrays compare equal (same length and
ndim but different shape) incorrect code will be generated for one of the
functions.'

def test_record_two_arrays(self):

    nbrecord = numpy_support.from_dtype(recordwith2arrays)
    rec = np.recarray(1, dtype=recordwith2arrays)[0]
    rec.k[:] = np.arange(200).reshape(10, 20)
    rec.l[:] = np.arange(72).reshape(6, 12)
    pyfunc = record_read_first_arr
    cfunc = self.get_cfunc(pyfunc, (nbrecord,))
    self.assertEqual(cfunc(rec), pyfunc(rec))
    pyfunc = record_read_second_arr
    cfunc = self.get_cfunc(pyfunc, (nbrecord,))
    self.assertEqual(cfunc(rec), pyfunc(rec))
