MathPHP\Functions\PiecewiseTest::testSubintervalsShareClosedPointException PHP Method

testSubintervalsShareClosedPointException() public method

    public function testSubintervalsShareClosedPointException()
    {
        $intervals = [[-100, -2], [-2, 2], [2, 100]];
        $functions = [new Polynomial([-1, 0]), new Polynomial([2]), new Polynomial([1, 0])];
        $this->setExpectedException('MathPHP\\Exception\\BadDataException');
        $piecewise = new Piecewise($intervals, $functions);
    }