test(junction): cover known island exclusions
This commit is contained in:
1 parent
4b8f37a219
commit
75bdfbe607
2 files changed
+21
No files matched your search
@@ -126,6 +126,15 @@ const teeCore = buildCoreClosure(tee.topology, teeBoundaryGraph, point(0, 0));
|
||||
assert.equal(teeCore.status, 'supported');
|
||||
assert.equal(teeCore.sharedEdgeRefs.length, teeBoundaryGraph.sections.length);
|
||||
assert.ok(teeCore.ring.every((coordinate) => coordinate.every(Number.isFinite)));
|
||||
const exclusionRing = [point(-1, -1), point(1, -1), point(1, 1), point(-1, 1), point(-1, -1)];
|
||||
const teeWithIsland = buildJunctionBoundaryGraph(
|
||||
tee.topology,
|
||||
point(0, 0),
|
||||
{ outerRadiusFor: () => 30, innerRadiusFor: () => 10 },
|
||||
tee.helpers,
|
||||
[{ id: 'island:known', ring: exclusionRing }],
|
||||
);
|
||||
assert.equal(buildCoreClosure(tee.topology, teeWithIsland, point(0, 0)).reason, 'known-exclusion-region');
|
||||
|
||||
// Offset and unequal-width approaches preserve individual source sections and
|
||||
// local section tangents rather than a single arm envelope.
|
||||
|
||||
Reference in new issue
Block a user