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

test failure for +- 0.0 #108

Open
missinglink opened this issue Nov 4, 2021 · 1 comment
Open

test failure for +- 0.0 #108

missinglink opened this issue Nov 4, 2021 · 1 comment
Labels

Comments

@missinglink
Copy link
Member

On the Mac ARM machines this one test fails due to -0 != +0

go test
--- FAIL: TestComputeCentroidForClosedPolygon (0.00s)
    centroid_test.go:84: 
        	Error Trace:	centroid_test.go:84
        	Error:      	Not equal: 
        	            	expected: "0.0000000"
        	            	actual  : "-0.0000000"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-0.0000000
        	            	+-0.0000000
        	Test:       	TestComputeCentroidForClosedPolygon
FAIL
exit status 1
FAIL	github.com/pelias/pbf2json	0.123s
@missinglink missinglink added the bug label Nov 4, 2021
@orangejulius
Copy link
Member

I've been running into this while making changes in this repo. Would be nice to fix :)

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

No branches or pull requests

2 participants