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

Formatting result is platform-dependent #14

Closed
fkleedorfer opened this issue Sep 7, 2024 · 2 comments · Fixed by #15
Closed

Formatting result is platform-dependent #14

fkleedorfer opened this issue Sep 7, 2024 · 2 comments · Fixed by #15
Labels
bug Something isn't working

Comments

@fkleedorfer
Copy link
Contributor

On my machine (DE settings), the 'LiteralTest' fails:

All I can see is that 4.2E9 and 4,2E9 differ - seems to be a platform-dependent formatting issue

org.opentest4j.AssertionFailedError: 
expected: "@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix : <http://example.com/> .

:foo01 :bar 1 .

:foo02 :bar "2" .

:foo03 :bar true .

:foo04 :bar -5.0 .

:foo05 :bar 4.2E9 .

:foo06 :bar "2021-01-01"^^xsd:date .

:foo07 :bar "something"^^:custom .

:foo08 :bar "something"@en .

:foo09 :bar "This contains a \" quote" .

:foo10 :bar """This contains a
linebreak""" ."
 but was: "@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix : <http://example.com/> .

:foo01 :bar 1 .

:foo02 :bar "2" .

:foo03 :bar true .

:foo04 :bar -5.0 .

:foo05 :bar 4,2E9 .

:foo06 :bar "2021-01-01"^^xsd:date .

:foo07 :bar "something"^^:custom .

:foo08 :bar "something"@en .

:foo09 :bar "This contains a \" quote" .

:foo10 :bar """This contains a
linebreak""" ."
	at [email protected]/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
	at [email protected]/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
	at app//de.atextor.turtle.formatter.TurtleFormatterTest.testLiterals(TurtleFormatterTest.java:125)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:580)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1596)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1596)
@atextor
Copy link
Owner

atextor commented Sep 10, 2024

Definitely a locale problem, thanks for reporting!

@fkleedorfer
Copy link
Contributor Author

Fixed in #15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants