123456789101112131415161718192021222324 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Noa
- * Date: 10/08/2018
- * Time: 10:00
- */
- namespace MedievalInc\Quadratic;
- use PHPUnit\Framework\TestCase;
- class QuadraticTest extends TestCase
- {
- public function testSolve()
- {
- $quad = new Quadratic();
- $this->assertEquals([-3, 0.5], $quad->solve(2, 5, -3));
- $this->assertEquals([], $quad->solve(2, 5, 12));
- }
- }
|