ShouldBeZero matcher #819
Labels
enhancement ✨
Suggestions for adding new features or improving existing ones.
good-first-issue 👶
Suitable for newcomers looking to contribute to the project.
Milestone
Int
,Double
,Long
, (...) should have a special matcher to verify if it's zero.This matcher should also have an opposite, to verify it's not zero.
Special cases to pay attention to:
Double.NaN
andDouble.POSITIVE_INFINITY
/Double.NEGATIVE_INFINITY
.These can be added to the
kotlintest-assertions
module. There can be a matcher for each numeric type, or aNumber
matcher that match them all.An example on how to start the
isZero
method:The text was updated successfully, but these errors were encountered: