fix: tests

This commit is contained in:
Tristan Cartledge
2023-12-01 18:25:15 +00:00
parent 6661f3a4e3
commit 94fb310643
3 changed files with 12 additions and 21 deletions

View File

@@ -676,6 +676,9 @@ func ExtractMapExtensions[PT Buildable[N], N any](
continue // yo, don't pay any attention to extensions, not here anyway.
}
}
if currentLabelNode == nil && i%2 != 0 {
continue // we need a label node first, and we don't have one because of extensions.
}
en = utils.NodeAlias(en)
if i%2 == 0 {