9f488c4a33d6185f6a94514a2ca4132599ff7fbf,test/unit_test/test_utility_topword.py,TestZTest,test_special_case,#TestZTest#,8

Before Change


        // assert _z_test_(p1=0.1, pt=0.3, n1=100, nt=10000) ==

    def test_special_case(self):
        try:
            _ = _z_test_(p1=0.1, pt=0.3, n1=0, nt=0)
            raise AssertionError("Division by zero message did not raise")
        except ZeroDivisionError:
            assert _ == "Insignificant"

After Change


    def test_special_case(self):
        assert _z_test_(p1=0.1, pt=0.3, n1=0, nt=0) == "Insignificant"
        assert _z_test_(p1=0.1, pt=0.3, n1=100, nt=0) == "Insignificant"
        assert _z_test_(p1=0.1, pt=0.3, n1=0, nt=100) == "Insignificant"

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: WheatonCS/Lexos
Commit Name: 9f488c4a33d6185f6a94514a2ca4132599ff7fbf
Time: 2017-07-28
Author: weltch1997@gmail.com
File Name: test/unit_test/test_utility_topword.py
Class Name: TestZTest
Method Name: test_special_case


Project Name: WheatonCS/Lexos
Commit Name: f656ad951158b500a92e230b2dd6cb48c465f0d2
Time: 2017-08-10
Author: darias0826@gmail.com
File Name: test/unit_test/test_file_cutter.py
Class Name: TestCutByWords
Method Name: test_cut_by_words_overlap


Project Name: recipy/recipy
Commit Name: 7b41deb87d3f6b3a8adf7ec94e6fd7b21e409299
Time: 2016-10-21
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/testcases/test_case_runner.py
Class Name: TestCaseRunner
Method Name: run_test_case