Skip to content

Commit

Permalink
Test now verifies that rationals work correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
aphyr committed Jul 16, 2013
1 parent b4e0a96 commit 8930dcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/clj_librato/metrics_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
(testing "gauge"
(let [gauge {:name "test.gauge"
:source "clj-librato"
:value (rand)
:value (/ (rand-int 1000) (rand-int 1000))
:measure-time (now)}]
; Submit gauge
(collate user apikey [gauge] [])
Expand All @@ -57,7 +57,7 @@
(is (= (:type metric) "gauge"))
(is m)
(is (= (:measure-time m) (:measure-time gauge)))
(is (= (:value m) (:value gauge)))
(is (= (:value m) (double (:value gauge))))
(is (= (:count m) 1)))
)))

Expand Down

0 comments on commit 8930dcb

Please sign in to comment.