Join Slack
Powered by
why is there no plusorMinus() for Long? there is o...
# kotest
t
torres
08/10/2020, 8:23 PM
why is there no plusorMinus() for Long? there is one for Double and Float
https://github.com/kotest/kotest/blob/f329f592ce3b285c5d8f1c255098b233e74f477d/kotest-assertions/kotest-assertions-core/src/commonMain/kotlin/io/kotest/matchers/floats/FloatMatchers.kt#L7
s
sam
08/10/2020, 8:26 PM
the tolerance is for round off errors
l
LeoColman
08/10/2020, 9:01 PM
I would use
lg shouldBeInRange (1..35)
14
Views
Open in Slack
Previous
Next