public testGetDegree ( array $coefficients, integer $expected ) | ||
$coefficients | array | |
$expected | integer |
public function testGetDegree(array $coefficients, int $expected)
{
$polynomial = new Polynomial($coefficients);
$degree = $polynomial->getDegree();
$this->assertEquals($expected, $degree);
}