Skip to content

Commit

Permalink
More fixes for assertEqualsWithDelta() assets.
Browse files Browse the repository at this point in the history
  • Loading branch information
landy2005 committed Nov 2, 2023
1 parent 1c4c0cb commit 819ab69
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/PhysicalQuantity/AreaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function testToDecimeterSquare(): void
$area = new Area(1, 'm^2');
$this->assertEqualsWithDelta(100, $area->toUnit('dm^2'), 0.000001);
$area = new Area(100, 'm^2');
$this->assertEquals(10000, $area->toUnit('dm^2'));
$this->assertEqualsWithDelta(10000, $area->toUnit('dm^2'), 0.000001);
}

public function testToMillimeterSquare(): void
Expand Down
4 changes: 2 additions & 2 deletions tests/PhysicalQuantity/VolumeFlowTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public function testToCubicDecimeterSecond(): void
*/
$this->assertEqualsWithDelta(1000, $area->toUnit('dm^3/s'), 0.000001);
$area = new VolumeFlow(100, 'm^3/s');
$this->assertEquals(100000, $area->toUnit('dm^3/s'));
$this->assertEqualsWithDelta(100000, $area->toUnit('dm^3/s'), 0.000001);
}


Expand All @@ -375,7 +375,7 @@ public function testToMilliLitresSecond(): void
$area = new VolumeFlow(1, 'l/s');
$this->assertEqualsWithDelta(1000, $area->toUnit('ml/s'), 0.000001);
$area = new VolumeFlow(100, 'l/s');
$this->assertEquals(100000, $area->toUnit('ml/s'));
$this->assertEqualsWithDelta(100000, $area->toUnit('ml/s'), 0.000001);
}

public function testToHectoLitresSecond(): void
Expand Down
4 changes: 2 additions & 2 deletions tests/PhysicalQuantity/VolumeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function testToCubicDecimeter(): void
$area = new Volume(1, 'm^3');
$this->assertEqualsWithDelta(1000, $area->toUnit('dm^3'), 0.000001);
$area = new Volume(100, 'm^3');
$this->assertEquals(100000, $area->toUnit('dm^3'));
$this->assertEqualsWithDelta(100000, $area->toUnit('dm^3'), 0.000001);
}

public function testToCubicMillimeter(): void
Expand All @@ -119,7 +119,7 @@ public function testToMilliLitres(): void
$area = new Volume(1, 'l');
$this->assertEqualsWithDelta(1000, $area->toUnit('ml'), 0.000001);
$area = new Volume(100, 'l');
$this->assertEquals(100000, $area->toUnit('ml'));
$this->assertEqualsWithDelta(100000, $area->toUnit('ml'), 0.000001);
}

public function testToHectoLitres(): void
Expand Down

0 comments on commit 819ab69

Please sign in to comment.