def test_complex_parts():
    assert fabs('3') == 3
    assert fabs(3+4j) == 5
    assert re(3) == 3
    assert re(1+4j) == 1
    assert im(3) == 0
    assert im(1+4j) == 4
    assert conj(3) == 3
    assert conj(3+4j) == 4j-3
    assert mpf(3).conjugate() == 3
dataset/ETHPy150Open fredrik-johansson/mpmath/mpmath/tests/test_functions.py/test_complex_parts/swapped operands of `-`