Test for both transform coords should use roughlyEqual

This commit is contained in:
Peter Robins
2016-03-21 14:21:56 +00:00
parent cf6baf2cd1
commit caf3e4b062

View File

@@ -720,9 +720,8 @@ describe('ol.format.GeoJSON', function() {
});
expect(point.getCoordinates()[0]).to.roughlyEqual(
newPoint.getCoordinates()[0], 1e-8);
expect(
Math.abs(point.getCoordinates()[1] - newPoint.getCoordinates()[1]))
.to.be.lessThan(0.0000001);
expect(point.getCoordinates()[1]).to.roughlyEqual(
newPoint.getCoordinates()[1], 1e-8);
});
it('transforms and encodes geometry collection', function() {