MathPHP\NumericalAnalysis\NumericalDifferentiation\NumericalDifferentiationTest::testNotCoordinatesException PHP Method

testNotCoordinatesException() public method

    public function testNotCoordinatesException()
    {
        // An array doesn't have precisely two numbers (coordinates)
        $this->setExpectedException('MathPHP\\Exception\\BadDataException');
        NumericalDifferentiation::validate([[0, 0], [1, 2, 3], [2, 2]], $degree = 3);
    }