Permalink
Browse files

Added an extra spec for Group#canonicalize

  • Loading branch information...
djspiewak committed May 14, 2011
1 parent 37366f9 commit b695ed1eb53b665a44f7ff3e3b44982d81dbe908
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/test/scala/com/codecommit/antixml/GroupSpecs.scala
@@ -157,6 +157,10 @@ class GroupSpecs extends Specification with ScalaCheck with XMLGenerators with U
Group(CDATA(left), Text(right)).canonicalize mustEqual Group(CDATA(left), Text(right))
Group(Text(left), CDATA(right)).canonicalize mustEqual Group(Text(left), CDATA(right))
}
"always preserve serialized equality" in check { g: Group[Node] =>
g.canonicalize.toString mustEqual g.toString
}
}
def elem(name: String, children: Node*) = Elem(None, name, Attributes(), Map(), Group(children: _*))

0 comments on commit b695ed1

Please sign in to comment.