aboutsummaryrefslogtreecommitdiff
blob: 523f9e598e60e5060ee8e56f474f4ad3ed81ecd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace Tests\AppBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

class MathControllerTest extends WebTestCase
{
    public function testAQIMath()
    {
        $CO = 1;
        $bpLowCO = 0;
        $bpHiCO = 4;
        $bpLowIndex = 0;
        $bpHiIndex = 50;
        $AQI = ((50 - 0)/(4 - 0))*(1-0)+0;
        $this->assertEquals(12.5, $AQI);
    }
}