bd72f63f3342bc88cd941bbc41547d6513e089ea,scipy/special/tests/test_kolmogorov.py,TestSmirnovi,test_n_equals_1,#TestSmirnovi#,121

Before Change


    @pytest.mark.xfail(reason="test fails; smirnovi(1,) is not accurate")
    def test_n_equals_1(self):
        pp = np.linspace(0, 1, 101, endpoint=True)
        dataset = [(1, p, 1-p) for p in pp]
        dataset = np.asarray(dataset)
        FuncData(smirnovi, dataset, (0, 1), 2, rtol=_rtol).check()

    @pytest.mark.xfail(reason="test fails; smirnovi(2,_) is not accurate")
    def test_n_equals_2(self):

After Change


        dataset = np.column_stack([[1]*len(pp), pp, 1-pp])
        FuncData(smirnovi, dataset, (0, 1), 2, rtol=_rtol).check(dtypes=[int, float, float])
        dataset[:, 1] = 1 - dataset[:, 1]
        FuncData(smirnovci, dataset, (0, 1), 2, rtol=_rtol).check(dtypes=[int, float, float])

    def test_n_equals_2(self):
        x = np.linspace(0.5, 1, 101, endpoint=True)
        p = np.power(1-x, 2)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: scipy/scipy
Commit Name: bd72f63f3342bc88cd941bbc41547d6513e089ea
Time: 2018-08-13
Author: pvanmulbregt@users.noreply.github.com
File Name: scipy/special/tests/test_kolmogorov.py
Class Name: TestSmirnovi
Method Name: test_n_equals_1


Project Name: ericmjl/pyjanitor
Commit Name: b5dca485575de7052f2ce8f39ea845e848e1ac89
Time: 2020-12-09
Author: samueloranyeli@gmail.com
File Name: janitor/functions.py
Class Name:
Method Name: fill_direction


Project Name: scipy/scipy
Commit Name: 7d4797579dfc0d433eb52372cd2e3927269648c9
Time: 2016-06-29
Author: person142@users.noreply.github.com
File Name: scipy/special/tests/test_mpmath.py
Class Name:
Method Name: test_hyp0f1_gh5764