Skip to content

Commit

Permalink
Adding a test to zipper.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncreep committed Dec 10, 2011
1 parent 326e187 commit f45e46e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/scala/com/codecommit/antixml/ZipperSpecs.scala
Expand Up @@ -965,6 +965,13 @@ class ZipperSpecs extends SpecificationWithJUnit with ScalaCheck with XMLGenera
shifted.unselect mustEqual group
}

"handle empty results" in {
val shifted = zipper shiftHoles makeConstShift(Seq())

shifted mustEqual Group()
shifted.unselect mustEqual group
}

"result in a lexicographic set" in {
val shifted = zipper shiftHoles constantShift
shifted mustEqual constShiftRes
Expand Down

0 comments on commit f45e46e

Please sign in to comment.