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

Fix amountandcommodity tostr #3

Merged
merged 3 commits into from
Jun 29, 2024
Merged

Conversation

petermax2
Copy link
Owner

Fixes Display implementation of AmountAndCommodity. Amounts between (-1, 0) werde displayed wihtout a minus (e.g. -0,01 EUR was displayed as "0,01 EUR").

Added unit tests to detect the problem and avoid regression.

Fixes #2

Signed-off-by: Peter Nirschl <peter.nirschl@gmail.com>
Signed-off-by: Peter Nirschl <peter.nirschl@gmail.com>
amounts between (-1, 0) were displayed without the minus (-) due to a
bug in the Display implementation in AmountAndCommodity.

fixes #2

Signed-off-by: Peter Nirschl <peter.nirschl@gmail.com>
@petermax2 petermax2 self-assigned this Jun 29, 2024
@petermax2 petermax2 merged commit f4ad4f4 into main Jun 29, 2024
1 check passed
@petermax2 petermax2 deleted the fix_amountandcommodity_tostr branch June 29, 2024 13:24
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 this pull request may close these issues.

AmountAndCommodity: -0,01 is rendered without sign
1 participant