dd19fc04a3b9f7d1e6efa624e09478bc2dcf0d9a,mvpa2/tests/test_constraints.py,ComplexConstraintsTests,test_altconstraints,#ComplexConstraintsTests#,127

Before Change


        assert_equal(c(None), None)
        // this should always fail
        c = Constraints(EnsureRange(min=0, max=4), EnsureRange(min=9, max=11))
        self.assertRaises(ValueError, lambda: c(7.0))

    def test_both(self):
        // this should always work
        c= AltConstraints(Constraints(EnsureFloat(),\

After Change


        // this should always fail
        c = Constraints(EnsureRange(min=0, max=4), EnsureRange(min=9, max=11))
        assert_raises(ValueError, c, 7.0)
        c = EnsureRange(min=0, max=4) | EnsureRange(min=9, max=11)
        assert_equal(c(3.0), 3.0)
        assert_equal(c(9.0), 9.0)
        assert_raises(ValueError, c, 7.0)
        assert_raises(ValueError, c, -1.0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: PyMVPA/PyMVPA
Commit Name: dd19fc04a3b9f7d1e6efa624e09478bc2dcf0d9a
Time: 2014-02-23
Author: debian@onerussian.com
File Name: mvpa2/tests/test_constraints.py
Class Name: ComplexConstraintsTests
Method Name: test_altconstraints


Project Name: PyMVPA/PyMVPA
Commit Name: 01adb744cec7cb1902348bc2329b664578c01a14
Time: 2014-02-20
Author: debian@onerussian.com
File Name: mvpa2/tests/test_constraints.py
Class Name: ComplexConstraintsTests
Method Name: test_constraints


Project Name: PyMVPA/PyMVPA
Commit Name: 01adb744cec7cb1902348bc2329b664578c01a14
Time: 2014-02-20
Author: debian@onerussian.com
File Name: mvpa2/tests/test_constraints.py
Class Name: ComplexConstraintsTests
Method Name: test_altconstraints


Project Name: PyMVPA/PyMVPA
Commit Name: dd19fc04a3b9f7d1e6efa624e09478bc2dcf0d9a
Time: 2014-02-23
Author: debian@onerussian.com
File Name: mvpa2/tests/test_constraints.py
Class Name: ComplexConstraintsTests
Method Name: test_constraints