def test_re_im_6(self): self.assertAlmostEqual(hfmath.re_im_to_complex(-1, -2), -1 - 2j)
def test_re_im_2(self): self.assertAlmostEqual(hfmath.re_im_to_complex(1, 0), 1 + 0j)
def test_re_im_4(self): self.assertAlmostEqual(hfmath.re_im_to_complex(-1, 2), -1 + 2j)
def test_re_im_1(self): self.assertAlmostEqual(hfmath.re_im_to_complex(0, 0), 0j)