S1ChordAngleTest Failure

17 views
Skip to first unread message

eric.loh...@gmail.com

unread,
Apr 30, 2024, 11:09:04 AMApr 30
to s2geometry-io
I get the following test failure when I run mvn test:

[ERROR] Tests run: 20, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.027 s <<< FAILURE! - in com.google.common.geometry.S1ChordAngleTest
[ERROR] com.google.common.geometry.S1ChordAngleTest.testTrigonometry  Time elapsed: 0.003 s  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<0.15643446504023098> but was:<0.1564344650402278>
at junit.framework.Assert.fail(Assert.java:57)
...

Note that, as I mentioned here https://groups.google.com/d/msgid/s2geometry-io/8fece1f9-07d4-4206-9e84-1065ee5134cbn%40googlegroups.com, I had to change the guava.version from 32.0-jre to 32.0.0-jre. That is the only diff I have compared to https://github.com/google/s2-geometry-library-java

een...@google.com

unread,
Apr 30, 2024, 12:29:38 PMApr 30
to s2geometry-io
Hi there. What version of Java are you using?

eric.loh...@gmail.com

unread,
May 1, 2024, 9:20:12 AMMay 1
to s2geometry-io
java -version

returns

java version "22.0.1" 2024-04-16
Java(TM) SE Runtime Environment (build 22.0.1+8-16)
Java HotSpot(TM) 64-Bit Server VM (build 22.0.1+8-16, mixed mode, sharing)

eric.loh...@gmail.com

unread,
May 1, 2024, 3:41:02 PMMay 1
to s2geometry-io
Reply all
Reply to author
Forward
0 new messages