Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding a test to zipper.

  • Loading branch information...
commit f45e46efa44cfa7f37863eba8427b420f92e84cf 1 parent 326e187
@ncreep authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/test/scala/com/codecommit/antixml/ZipperSpecs.scala
View
7 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
Please sign in to comment.
Something went wrong with that request. Please try again.