Permalink
Browse files

Adding a test to zipper.

  • Loading branch information...
1 parent 326e187 commit f45e46efa44cfa7f37863eba8427b420f92e84cf @ncreep committed Dec 10, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/test/scala/com/codecommit/antixml/ZipperSpecs.scala
@@ -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

0 comments on commit f45e46e

Please sign in to comment.