commons-math
commons-math copied to clipboard
[MATH-1560] Fix flaky testGetAvailableLocales
Detailed description of the issue: https://issues.apache.org/jira/browse/MATH-1560
This patch converts the return arrays of NumberFormat.getAvailableLocales() and ComplexFormat.getAvailableLocales() to HashSets, before doing an assertEqual on the content of the sets.
Coverage decreased (-0.008%) to 90.705% when pulling 8d1050cca0ae088e773207e2948d83c27d35f72a on tongxin97:fix-testGetAvailableLocales into bb02fad3e3663062e563c29302375279fcd0cb45 on apache:master.
Fixed in 1bc542778bb3792e90996ef18c3b938791a92c90