Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

also discourage the usage of notToEqual in case of nullable BigDecimal #1507

Closed
robstoll opened this issue Aug 11, 2023 · 0 comments · Fixed by #1508
Closed

also discourage the usage of notToEqual in case of nullable BigDecimal #1507

robstoll opened this issue Aug 11, 2023 · 0 comments · Fixed by #1508
Assignees
Milestone

Comments

@robstoll
Copy link
Owner

robstoll commented Aug 11, 2023

*Api": all
Platform (all, jvm, js): all
Extension (none, kotlin 1.3): none

Code related feature

// guides the user to use toEqualNumerically or toEqualIncludingScale
expect(BigDecimal("10")).toEqual(BigDecimal("10.0")) 
expect(BigDecimal("10") as BigDecimal?).toEqual(BigDecimal("10.0"))

// guides the user to use notToEqualNumerically or notToEqualIncludingScale
expect(BigDecimal("10")).notToEqual(BigDecimal("10.0")) 

// does not guide the user
expect(BigDecimal("10") as BigDecimal?).toEqual(BigDecimal("10.0"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant