                                            3 {:summary leaf}}}}))))
   (testing "pathmap that has overlapping branch and leaf nodes"
     (is (= [[:lolomo]
-            [:lolomo [:summary 13 14]]
-            [:lolomo [15 16 17] [:rating :summary]]
-            [:lolomo [13 14] :summary]]
+            [:lolomo [(range 13 15) :summary]]
+            [:lolomo [(range 15 18)] [:summary :rating]]
+            [:lolomo [(range 13 15)] :summary]]
            (length-tree-pathsets {1 {:lolomo leaf}
                                   2 {:lolomo {:summary leaf
                                               13 leaf

                  [:one (range 0 4) :summary]])))))

(deftest collapse-test
  (is (= [[:genres 0 :titles [0 1] [:name :rating]]]
         (collapse [[:genres 0 :titles 0 :name]
                    [:genres 0 :titles 0 :rating]
                    [:genres 0 :titles 1 :name]
                    [:genres 0 :titles 1 :rating]])))
  (is (= [[:genres 0 :titles [0 1] [:name :rating]]]
         (collapse [[:genres 0 :titles 0 [:name :rating]]
                    [:genres 0 :titles 1 :name]
                    [:genres 0 :titles 1 :rating]]))))

                           [:video [0 (range 5 8)] :title]]))))

(deftest pathsets-test
  (is (= [[:one [:three :two]]
          [:one "four" [(range 0 2)]]]
         (pathsets {:one {:two leaf
                          :three leaf
                          "four" {0 leaf
