def test_record_in(self):
     host_rec = np.zeros(1, dtype=recordtype)
     self.set_record_to_three(cuda.In(host_rec))
     self.assertEqual(0, host_rec[0]['b'])
 def test_array_in(self):
     host_arr = np.zeros(1, dtype=np.int64)
     self.set_array_to_three(cuda.In(host_arr))
     self.assertEqual(0, host_arr[0])