#1483 FloatTest failure

vkuzkokov Thu 7 Apr 2011

I have default Russian locale which is more or less equivalent to having

java.options=-Xmx512M -Duser.language=ru -Duser.country=RU

in config.props. Here's what I get for testSys::FloatTest.testLocale:

TEST FAILED
sys::TestErr: Test failed: "-0,0000287.000000" [sys::Str] != "-.000029" [sys::Str]
  fan.sys.Test.err (Test.java:181)
  fan.sys.Test.fail (Test.java:173)
  fan.sys.Test.verifyEq (Test.java:96)
  fan.sys.Test.verifyEq (Test.java:90)
  testSys::FloatTest.verifyLocale (FloatTest.fan:738)
  fan.sys.Locale.use (Locale.java:83)
  testSys::FloatTest.verifyLocale (FloatTest.fan:734)
  testSys::FloatTest.verifyLocale (FloatTest.fan)
  testSys::FloatTest.testLocale (FloatTest.fan:702)
  java.lang.reflect.Method.invoke (Unknown)
  fan.sys.Method.invoke (Method.java:552)
  fan.sys.Method$MethodFunc.callList (Method.java:204)
  fan.sys.Method.callList (Method.java:138)
  fanx.tools.Fant.runTest (Fant.java:174)
  fanx.tools.Fant.test (Fant.java:94)
  fanx.tools.Fant.test (Fant.java:30)
  fanx.tools.Fant.run (Fant.java:259)
  fanx.tools.Fant.main (Fant.java:302)

I also reproduced it with es and fr locales.

brian Thu 7 Apr 2011

thanks for reporting that

this changeset should fix it

Login or Signup to reply.