Merge pull request #7246 from marcjansen/fix-7244

Compare measured lengths with a tolerance
This commit is contained in:
Marc Jansen
2017-09-12 12:43:07 +02:00
committed by GitHub

View File

@@ -176,7 +176,7 @@ describe('ol.Sphere.getLength()', function() {
it('works for case ' + i, function() {
var c = cases[i];
var length = ol.Sphere.getLength(c.geometry, c.options);
expect(length).to.equal(c.length);
expect(length).to.roughlyEqual(c.length, 1e-8);
});
});