248dbe8d9d7373613f47d0862f8bc21778c3f266,tests/test_manifold.py,TestManifoldMethods,test_regularize,#TestManifoldMethods#,30

Before Change



    def test_regularize(self):
        point = gs.array([1, 2, 3])
        self.assertRaises(NotImplementedError,
                          lambda: self.manifold.regularize(point))


if __name__ == "__main__":
        unittest.main()

After Change



    def test_regularize(self):
        point = gs.array([1, 2, 3])
        result = self.manifold.regularize(point)
        expected = point
        self.assertTrue(gs.allclose(result, expected))


if __name__ == "__main__":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: geomstats/geomstats
Commit Name: 248dbe8d9d7373613f47d0862f8bc21778c3f266
Time: 2018-11-21
Author: ninamio78@gmail.com
File Name: tests/test_manifold.py
Class Name: TestManifoldMethods
Method Name: test_regularize


Project Name: geomstats/geomstats
Commit Name: 0929d3781a6d755fe90e285ec8bfefdfd75efa2f
Time: 2018-11-20
Author: ninamio78@gmail.com
File Name: tests/test_manifold_tensorflow.py
Class Name: TestManifoldMethodsTensorFlow
Method Name: test_regularize


Project Name: geomstats/geomstats
Commit Name: 248dbe8d9d7373613f47d0862f8bc21778c3f266
Time: 2018-11-21
Author: ninamio78@gmail.com
File Name: tests/test_manifold_tensorflow.py
Class Name: TestManifoldMethodsTensorFlow
Method Name: test_regularize


Project Name: geomstats/geomstats
Commit Name: 0929d3781a6d755fe90e285ec8bfefdfd75efa2f
Time: 2018-11-20
Author: ninamio78@gmail.com
File Name: tests/test_manifold.py
Class Name: TestManifoldMethods
Method Name: test_regularize