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