Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilDeOrsey committed Apr 5, 2024
1 parent 23b7f88 commit a8052cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/boolean-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ tape('unions', (test) => {
new Polygon(new Point(1692.26, 3936.95), new Point(1342.26, 3936.94), new Point(1254.76, 4088.49), new Point(1079.76, 4088.49), new Point(992.26, 3936.94), new Point(992.27, 3936.94), new Point(1167.26, 3633.83), new Point(1167.2636603221083, 3633.8336603221082), new Point(1342.26, 3330.74), new Point(1517.2542265184259, 3633.84), new Point(1692.26, 3633.84), new Point(1779.76, 3785.39))
];
const badUnion = Polygon.union(polyList, undefined, false);
test.equal(Math.abs(total(badUnion.map(u => u.area)) - total(polyList.map(u => u.area))) < 1, true);

test.end();
});

0 comments on commit a8052cc

Please sign in to comment.