defects4j
defects4j copied to clipboard
Lang 26 test case does not fail for all system locales
The test for bug Lang-26 (testLang645
) only fails for particular system locales. For example, if your system locale is en_US
, the test will fail. However, if your system locale is en_GB
, the test will pass.
The test can be modified to ensure that it always catches the bug, regardless of your own system locale by adding the line Locale.setDefault(new Locale("en", "US"));
to the start of the test.