-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Having a few issues with 5.0.0 (custom group/decimal separators) #84
Comments
whilst I think its a bug, allowing a '-' as decimal separator seems highly problematic due to confusion with a -ve value. I'm inclined to disallow - and + as any type of separator. |
That's fair, I just don't really have a choice but to support it 😅 |
I'm going to close this as whilst it might be a bug I don't think supporting a +- as a decimal separator is worth investing time into. |
Two of the failure cases had |
If you can give me some specific unit tests (that don't use your FormatCurrency function ) then I would be happy to look at it. I want to exclude the FormatCurrency as I don't want to be testing that as opposed to testing the core money classes. |
Hi there,
Sorry for the delay in testing 5.0.0. I finally got around to it, but I am having a few unit tests fail, and it's not obvious immediately whether it's my issue or the packages. All of these tests passed (with the code in the previous issue) on the prior version.
Here's my formatting function (no longer doing a temp replacement of group/decimal separators as described in #79)
Here are just a few examples of failures:
fails with:
fails with:
Using the same
euroCurrency
from the previous test:fails with
fails with (note: the same failure occurs for
/
as group separator) :The text was updated successfully, but these errors were encountered: