-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Some tests do not work on Locales using "," as decimal separator. #14
Conversation
- Force Locale.US on formatting
…cing Locale.US on formatting.
I can't help but feel that this isn't the right answer. Wouldn't it make John On Mon, Jan 20, 2014 at 1:56 PM, Richard Eckart de Castilho <
|
For example, I just updated the ConfusionMatrix and its test so it will John On Mon, Jan 20, 2014 at 8:03 PM, John Bauer [email protected] wrote:
|
Sure, there are these two ways to follow. I believe creating the expected output in a locale-sensitive way ends up being much more work in the long run. E.g. the expected output cannot easily be stored in a file. It must always be generated dynamically. So, unless there is a specific requirement to support internationalization, I tend to fix the locale. Isn't it strange too when the messages and errors are in English, but the numeric formats are localized? |
So I'm closing this pull request too. I wonder, you do not seem to be merging the pull requests. It appears you just look at the changes and redo them. Otherwise, I believe the commits that are part of the pull request would appear as part of the project history. Is there a specific reason for this? E.g. missing CLA or pull requests with too many changes? Either can be fixed/improved. |
Good observation. This is not the git repository we use internally, but a I'm sure with a larger change such as the possible segmenter change, we'd John
|
The test output doesn't have to be dynamically generated if you test the Would you check to see if the tests now pass? Thanks! On Tue, Jan 21, 2014 at 3:37 AM, Richard Eckart de Castilho <
|
It appears to pass. Setting Locale.setDefault() sounds like a very good solution because it doesn't actually require changes to the API. |
Bugfix change to get tests running on my non-US environment. Please consider this change to public domain.