Skip to content

Commit

Permalink
Test bounds were too tight
Browse files Browse the repository at this point in the history
  • Loading branch information
ashenfad committed Feb 29, 2012
1 parent 4c68c92 commit 401dd8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/histogram/test/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
(let [points 10000]
(is (about= (sum (reduce insert! (create) (normal-data points)) 0)
(/ points 2)
(/ points 100)))))
(/ points 50)))))

(deftest median-test
(let [points 10000]
Expand All @@ -48,7 +48,7 @@
merged-hist (reduce merge! hists)]
(is (about= (sum merged-hist 0)
(/ (* points hist-count) 2)
(/ (* points hist-count) 100)))))
(/ (* points hist-count) 50)))))

(deftest mixed-test
(let [insert-pair #(apply insert! (apply insert! (create) %1) %2)
Expand Down

0 comments on commit 401dd8e

Please sign in to comment.