Skip to content

geomfn: adjust two tests to work on s390x #148778

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yuzefovich
Copy link
Member

angleFromCoords function uses atan to compute some geometry functions. s390x system has architecture support for that trigonometric function which can produce slightly different result than when computing via math operations, which resulted in a false positive failure in a couple of tests. This commit teaches those tests to use our custom float comparison function that only checks 15 significant decimal digits.

Fixes: #145985.

Release note: None

`angleFromCoords` function uses `atan` to compute some geometry
functions. s390x system has architecture support for that trigonometric
function which can produce slightly different result than when computing
via math operations, which resulted in a false positive failure in
a couple of tests. This commit teaches those tests to use our custom
float comparison function that only checks 15 significant decimal
digits.

Release note: None
@yuzefovich yuzefovich requested review from mgartner, michae2 and a team June 24, 2025 23:48
@yuzefovich yuzefovich requested a review from a team as a code owner June 24, 2025 23:48
@cockroach-teamcity
Copy link
Member

This change is Reviewable

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

Successfully merging this pull request may close these issues.

geo/geomfn: TestAngle{,LineString} fail on s390x
2 participants