Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Added an extra spec for Group#canonicalize
  • Loading branch information
djspiewak committed May 14, 2011
1 parent 37366f9 commit b695ed1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/scala/com/codecommit/antixml/GroupSpecs.scala
Expand Up @@ -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: _*))
Expand Down

0 comments on commit b695ed1

Please sign in to comment.