Skip to content

Commit 176a035

Browse files
authored
Update combine_ways.test.js
1 parent b089fcc commit 176a035

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/combine_ways.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ describe.each([
8282
'<way id="3"><nd ref="3"/><nd ref="4"/><nd ref="1"/></way>',
8383
], 1, 5, 'Dealing with amiguity. Only make one closed way',
8484
],
85+
[
86+
[
87+
'<way id="1"><nd ref="1"/><nd ref="2"/><nd ref="3"/></way>',
88+
'<way id="2"><nd ref="3"/><nd ref="4"/><nd ref="2"/><nd ref="5"/><nd ref="1"/></way>',
89+
], 0, 0, 'Closed way is self intersecting',
90+
],
8591
])('Combine Ways', (ways, length, nodes, description) => {
8692
test(`${description}`, () => {
8793
let parser = new window.DOMParser();

0 commit comments

Comments
 (0)