Skip to content

Commit

Permalink
Fix bugs in tests (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahTheDuke authored Dec 17, 2021
1 parent cdf54bb commit 4f21afe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/flatland/ordered/map_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,14 @@
(testing "Large number of keys still sorted"
(let [kvs (for [n (range 5000)]
[(str n) n])
expected (into values kvs)
ordered (into m kvs)]
(= (seq kvs) (seq ordered))))))
(is (= (seq expected) (seq ordered)))))))

(deftest reversing
(let [source (vec (for [n (range 10)]
[n n]))
m (into (sorted-map) source)]
m (into (ordered-map) source)]
(is (= (rseq m) (rseq source)))))

(deftest map-features
Expand Down

0 comments on commit 4f21afe

Please sign in to comment.