fix(junction): omit unsupported corner facilities

This commit is contained in:
que01 committed 2026-09-09 09:23:58 +08:00
1 parent f56c0978b0
commit b6f4dfeb0c
3 files changed
+30 -182

No files matched your search

+10
View File
@@ -103,4 +103,14 @@ assert.ok(
),
);
assert.ok(complexGeometry.roadSurface.features.some((feature) => feature.properties?.kind === 'complex-approach'));
const complexFeatures = Object.values(complexGeometry).flatMap((layer) => layer?.features || []);
assert.equal(
complexFeatures.some((feature) => feature.properties?.kind === 'complex-corner-island'),
false,
);
assert.equal(
complexFeatures.some((feature) => feature.properties?.kind === 'complex-corner-crosswalk'),
false,
);
assert.ok(complexGeometry.diagnostics.some((item) => item.rule === 'complex-junction-corner-facilities-omitted'));
console.log('road compiler package tests passed');