def python_array_test(self): x = 3.141 assert_array_equal(x, unpack(pack(x)))
def numpy_multiarray_test(self): x = np.random.uniform(size=(10, 10, 10)) assert_array_equal(x, unpack(pack(x)))
def python_int_test(self): x = 3 assert_array_equal(x, unpack(pack(x)))
def numpy_scalar_test(self): x = np.random.uniform() assert_array_equal(x, unpack(pack(x)))