From c5e198b986d03f1f22e18bb7de235cbe02963813 Mon Sep 17 00:00:00 2001 From: Bailey Lissington Date: Fri, 28 Jun 2024 14:44:03 -0600 Subject: [PATCH] fix: add a test to check for circle ring closure --- test/circle-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/circle-test.js b/test/circle-test.js index dc52584..385a033 100644 --- a/test/circle-test.js +++ b/test/circle-test.js @@ -23,5 +23,5 @@ it("circle.center([45, 45])", () => { it("circle: first and last points are coincident", () => { const o = geoCircle().center([0, 0]).radius(0.02).precision(45)(); - assertInDelta(o.coordinates[0][0], o.coordinates[0].pop(), 1e-6); + assert.deepStrictEqual(o.coordinates[0][0], o.coordinates[0].pop()); });