

def test_scalar_complex(self):
    x = (np.random.rand() + (1j * np.random.rand()))
    x_rec = self.encode_decode(x)
    self.assertTrue(np.allclose(x, x_rec))

dataset/ETHPy150Open pydata/pandas/pandas/io/tests/test_packers.py TestNumpy.test_scalar_complex/original