Test for both transform coords should use roughlyEqual
This commit is contained in:
@@ -720,9 +720,8 @@ describe('ol.format.GeoJSON', function() {
|
|||||||
});
|
});
|
||||||
expect(point.getCoordinates()[0]).to.roughlyEqual(
|
expect(point.getCoordinates()[0]).to.roughlyEqual(
|
||||||
newPoint.getCoordinates()[0], 1e-8);
|
newPoint.getCoordinates()[0], 1e-8);
|
||||||
expect(
|
expect(point.getCoordinates()[1]).to.roughlyEqual(
|
||||||
Math.abs(point.getCoordinates()[1] - newPoint.getCoordinates()[1]))
|
newPoint.getCoordinates()[1], 1e-8);
|
||||||
.to.be.lessThan(0.0000001);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('transforms and encodes geometry collection', function() {
|
it('transforms and encodes geometry collection', function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user