Fix failing test

This commit is contained in:
tsauerwein
2015-04-02 12:55:49 +02:00
parent c0a23dc818
commit f99196c466

View File

@@ -693,7 +693,8 @@ describe('ol.format.GeoJSON', function() {
var newPoint = format.readGeometry(geojson, {
featureProjection: 'EPSG:3857'
});
expect(point.getCoordinates()[0]).to.eql(newPoint.getCoordinates()[0]);
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);