def test_record_inout(self):
     host_rec = np.zeros(1, dtype=recordtype)
     self.set_record_to_three(cuda.InOut(host_rec))
     self.assertEqual(3, host_rec[0]['b'])
 def test_array_inout(self):
     host_arr = np.zeros(1, dtype=np.int64)
     self.set_array_to_three(cuda.InOut(host_arr))
     self.assertEqual(3, host_arr[0])