defects4j icon indicating copy to clipboard operation
defects4j copied to clipboard

Lang 26 test case does not fail for all system locales

Open AndrewC19 opened this issue 2 years ago • 1 comments

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.

AndrewC19 avatar Oct 11 '22 10:10 AndrewC19