4a6e1b9bf83cd081644e944cde14c7a38691d805,scipy/special/tests/test_wrightomega.py,,test_wrightomega_inf_branch,#,19

Before Change


           complex(-np.inf, -np.pi/4),
           complex(-np.inf, 3*np.pi/4),
           complex(-np.inf, -3*np.pi/4)]
    for p in pts:
        res = sc.wrightomega(p)
        assert_equal(res, 0)
        if abs(p.imag) <= np.pi/2:
            assert_(np.signbit(res.real) == False)
        else:
            assert_(np.signbit(res.real) == True)
        if p.imag >= 0:
            assert_(np.signbit(res.imag) == False)
        else:
            assert_(np.signbit(res.imag) == True)


def test_wrightomega_inf():
    pts = [complex(np.inf, 10),
           complex(-np.inf, 10),
           complex(10, np.inf),

After Change


           complex(-np.inf, -np.pi/4),
           complex(-np.inf, 3*np.pi/4),
           complex(-np.inf, -3*np.pi/4)]
    expected_results = [complex(0.0, 0.0),
                        complex(0.0, -0.0),
                        complex(-0.0, 0.0),
                        complex(-0.0, -0.0)]
    for p, expected in zip(pts, expected_results):
        res = sc.wrightomega(p)
        // We can"t use assert_equal(res, expected) because in older versions of
        // numpy, assert_equal doesn"t check the sign of the real and imaginary
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scipy/scipy
Commit Name: 4a6e1b9bf83cd081644e944cde14c7a38691d805
Time: 2017-03-27
Author: warren.weckesser@gmail.com
File Name: scipy/special/tests/test_wrightomega.py
Class Name:
Method Name: test_wrightomega_inf_branch


Project Name: scipy/scipy
Commit Name: 1fa19a5365d049417da3c830fe7a1c63f2eb44af
Time: 2018-12-14
Author: rth.yurchak@pm.me
File Name: scipy/special/tests/test_mpmath.py
Class Name:
Method Name: test_digamma_negreal


Project Name: scipy/scipy
Commit Name: 1fa19a5365d049417da3c830fe7a1c63f2eb44af
Time: 2018-12-14
Author: rth.yurchak@pm.me
File Name: scipy/special/tests/test_mpmath.py
Class Name:
Method Name: test_digamma_boundary