Exemplo n.º 1
0
 public function testSimpleDivision()
 {
     $actualResult = AwesomeCalculator::divide(2, 5);
     $expectedResult = 0.4;
     $tolerance = 1.0E-9;
     $this->assertLessThan($expectedResult + $tolerance, $actualResult);
     $this->assertGreaterThan($expectedResult - $tolerance, $actualResult);
 }