Skip to content

Commit 223271b

Browse files
committed
Fix unapplySeq property test for 2.13
Name-based pattern matching dropped in 2.13.0-M5
1 parent d5ee20f commit 223271b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: shared/src/test/scala/scala/xml/ElemSpec.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ object ElemSpec extends PropertiesFor("Elem")
6363
case _: SpecialNode | _: Group =>
6464
opt ?= None
6565
case _ =>
66-
opt ?= Some((n.prefix, n.label, n.attributes, n.scope, n.child))
66+
opt ?= Some((n.prefix, n.label, n.attributes, n.scope, n.child.toSeq))
6767
})
6868
}
6969
}

Diff for: shared/src/test/scala/scala/xml/NodeSpec.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ object NodeSpec extends CheckProperties("Node")
340340
Node.unapplySeq(n)
341341
}
342342
case _ =>
343-
Node.unapplySeq(n) ?= Some((n.label, n.attributes, n.child))
343+
Node.unapplySeq(n) ?= Some((n.label, n.attributes, n.child.toSeq))
344344
})
345345
}
346346
}

Diff for: shared/src/test/scala/scala/xml/QNodeSpec.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ object QNodeSpec extends CheckProperties("QNode")
1818
property("unapplySeq") = {
1919
Prop.forAll { n: Node =>
2020
val res = QNode.unapplySeq(n)
21-
res ?= Some((n.scope.getURI(n.prefix), n.label, n.attributes, n.child))
21+
res ?= Some((n.scope.getURI(n.prefix), n.label, n.attributes, n.child.toSeq))
2222
}
2323
}
2424
}

0 commit comments

Comments
 (0)