public function testWeightedMovingAverageExceptionWeightsDiffereFromN()
{
$numbers = [1, 2, 3, 4, 5, 6];
$n = 3;
$weights = [1, 2];
$this->setExpectedException('MathPHP\\Exception\\BadDataException');
Average::weightedMovingAverage($numbers, $n, $weights);
}