Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumbersModuleTest fails due to locale #434

Closed
GoogleCodeExporter opened this issue Mar 16, 2015 · 3 comments
Closed

NumbersModuleTest fails due to locale #434

GoogleCodeExporter opened this issue Mar 16, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

GoogleCodeExporter commented Mar 16, 2015

My OS (Ubuntu 11.04) uses Dutch localization. When compiling Ontopia with Maven 
the test cases of NumbersModuleTest fail, because it expects the results to be 
in a different locale. This is the fail message:

Failed tests: 
testNumbersValueClosedPattern(net.ontopia.topicmaps.query.core.NumbersModuleTest
): null
testNumbersValueOpenPattern(net.ontopia.topicmaps.query.core.NumbersModuleTest):
 match not found in expected results: {result=1.234} => [{result=1234567.9}]
testNumbersFormatClosedPattern(net.ontopia.topicmaps.query.core.NumbersModuleTes
t): null
testNumbersFormatOpenPattern(net.ontopia.topicmaps.query.core.NumbersModuleTest)
: match not found in expected results: {result=1.234,00} => [{result=1,234.00}]

Original issue reported on code.google.com by p.brandw...@mssm.nl on 8 Dec 2011 at 4:05

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Mar 16, 2015

Original comment by p.kruijsen on 8 Dec 2011 at 6:34

  • Changed state: Accepted
  • Added labels: Component-Engine

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Mar 16, 2015

Fixed by r2246, variable 'locale' is now mandatory when using a 'pattern' to 
either parse or format a number.

Original comment by p.kruijsen on 9 Dec 2011 at 1:18

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Mar 16, 2015

Original comment by qsieb...@gmail.com on 27 Jan 2012 at 11:33

  • Added labels: Release5.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant