MathPHP\Statistics\AverageTest::testHarmonicMeanExceptionNegativeValues PHP 메소드

testHarmonicMeanExceptionNegativeValues() 공개 메소드

    public function testHarmonicMeanExceptionNegativeValues()
    {
        $this->setExpectedException('MathPHP\\Exception\\BadDataException');
        Average::harmonicMean([1, 2, 3, -4, 5, -6, 7]);
    }
AverageTest