Merge pull request #7246 from marcjansen/fix-7244
Compare measured lengths with a tolerance
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user