Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix/newFromFloat-currency-panic #145

Merged

Conversation

hubarthurcoelho
Copy link
Contributor

This PR resolves issue #144 related to the application panicking when provided with an invalid or unregistered currency when using NewFromFloat.

  • Added unit tests to reproduce and confirm the issue, ensuring that the solution targets the problem accurately;
  • Updated NewFromFloat to instantiate a currency in the same manner as New, defaulting to a standard currency configuration if the specified currency is not recognized.

@Rhymond Rhymond merged commit d338884 into Rhymond:master Apr 12, 2024
4 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants