From 9abfa9573576fa3970496c3c394f8550e037ddf6 Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Tue, 12 Sep 2017 09:34:53 +0200 Subject: [PATCH] Compare measured lengths with a tolerance --- test/spec/ol/sphere.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/spec/ol/sphere.test.js b/test/spec/ol/sphere.test.js index bdc75c92c7..41e3fcc4b1 100644 --- a/test/spec/ol/sphere.test.js +++ b/test/spec/ol/sphere.test.js @@ -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); }); });