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

Quantity.subtract(…) broken for Quantity.NONE #368

Closed
odrotbohm opened this issue Oct 26, 2021 · 0 comments
Closed

Quantity.subtract(…) broken for Quantity.NONE #368

odrotbohm opened this issue Oct 26, 2021 · 0 comments
Assignees
Labels
module: core Core / Time / Quantity / Payment type: bug Bugs
Milestone

Comments

@odrotbohm
Copy link
Member

odrotbohm commented Oct 26, 2021

assertThat(Quantity.NONE.subtract(Quantity.of(5))).isEqualTo(Quantity.of(-5)); fails. Workaround: use Quantity.of(0) rather than Quantity.NONE.

@odrotbohm odrotbohm added type: bug Bugs module: core Core / Time / Quantity / Payment labels Oct 26, 2021
@odrotbohm odrotbohm added this to the 7.5 milestone Oct 26, 2021
@odrotbohm odrotbohm self-assigned this Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: core Core / Time / Quantity / Payment type: bug Bugs
Projects
None yet
Development

No branches or pull requests

1 participant