Skip to content

Commit ae819fc

Browse files
authored
Update combine_ways.test.js
1 parent b074f46 commit ae819fc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/combine_ways.test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ describe.each([
9898
'<way id="2"><nd ref="2"/><nd ref="3"/><nd ref="4"/><nd ref="5"/><nd ref="3"/><nd ref="1"/></way>',
9999
], 0, 0, ['Way 2 is self-intersecting'], 'Open way is self intersecting',
100100
],
101+
[
102+
[
103+
'<way id="1"><nd ref="1"/><nd ref="2"/></way>',
104+
'<way id="2"><nd ref="2"/><nd ref="3"/><nd ref="4"/><nd ref="5"/><nd ref="3"/><nd ref="1"/></way>',
105+
'<way id="3"><nd ref="2"/><nd ref="3"/><nd ref="1"/></way>',
106+
], 1, 4, ['Way 2 is self-intersecting'], 'Open way is self intersecting, but ring formed',
107+
],
101108
])('Combine Ways', (ways, length, nodes, errors, description) => {
102109
test(`${description}`, () => {
103110
let parser = new window.DOMParser();

0 commit comments

Comments
 (0)