Join Slack
Powered by
Hi, having trouble testing to see whether a double...
# kotlintest
i
Ian
12/06/2016, 4:15 PM
Hi, having trouble testing to see whether a double is between two values. I realize I could do it the “dumb” way -
((0.0 .. 1.0).contains(v) shouldBe true
, but then I don’t get useful info (like the actual value of v) if the test fails. Any ideas?
Open in Slack
Previous
Next