We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On systems with non-US locales tests for StringUtils would fail (, and . would be swapped), as result tests would fail too.
I think the issue could be fixed by changing
protected static final DecimalFormat shortDecimal = new DecimalFormat("##0.0");
to
protected static final DecimalFormat shortDecimal = new DecimalFormat("##0.0", DecimalFormatSymbols.getInstance(Locale.ENGLISH));
The text was updated successfully, but these errors were encountered:
Can repro. [ERROR] Failures: [ERROR] StringUtilsTest.testTicksToSeconds_FractionalTicks:91 expected: <1.5> but was: <1,5> [ERROR] StringUtilsTest.testTicksToSeconds_NegativeTicks:99 expected: <-1.0> but was: <-1,0> [ERROR] StringUtilsTest.testTicksToSeconds_PositiveTicks:81 expected: <1.5> but was: <1,5> [ERROR] StringUtilsTest.testTicksToSeconds_ZeroTicks:86 expected: <0.0> but was: <0,0> [INFO] [ERROR] Tests run: 160, Failures: 4, Errors: 0, Skipped: 0
[ERROR] Failures: [ERROR] StringUtilsTest.testTicksToSeconds_FractionalTicks:91 expected: <1.5> but was: <1,5> [ERROR] StringUtilsTest.testTicksToSeconds_NegativeTicks:99 expected: <-1.0> but was: <-1,0> [ERROR] StringUtilsTest.testTicksToSeconds_PositiveTicks:81 expected: <1.5> but was: <1,5> [ERROR] StringUtilsTest.testTicksToSeconds_ZeroTicks:86 expected: <0.0> but was: <0,0> [INFO] [ERROR] Tests run: 160, Failures: 4, Errors: 0, Skipped: 0
Sorry, something went wrong.
On systems with non-US locales tests for StringUtils would fail (, and . would be swapped), as result tests would fail too. I think the issue could be fixed by changing protected static final DecimalFormat shortDecimal = new DecimalFormat("##0.0"); to protected static final DecimalFormat shortDecimal = new DecimalFormat("##0.0", DecimalFormatSymbols.getInstance(Locale.ENGLISH));
That fixed it. I also added: import java.text.DecimalFormatSymbols; Above the DecimalFormat import.
import java.text.DecimalFormatSymbols;
No branches or pull requests
On systems with non-US locales tests for StringUtils would fail (, and . would be swapped), as result tests would fail too.
I think the issue could be fixed by changing
to
The text was updated successfully, but these errors were encountered: