jblas-project / jblas

Linear Algebra for Java
http://jblas.org
BSD 3-Clause "New" or "Revised" License
590 stars 149 forks source link

Test{Float,Double}Matrix.testToString() are failing in French locale. #40

Closed ghost closed 10 years ago

ghost commented 10 years ago

Setting the locale to English for the time of the test and then back to default. It should work for other values of locale as well.

srowen commented 10 years ago

(To avoid similar issues, on a broader scale, I have in the past a) set a fixed locale in a test superclass, in a @BeforeClass method, and b) set the Locale on any method like String.format() where this kind of thing can happen in the code.)

ghost commented 10 years ago

Thanks for the suggestion.