examples/geohash: first version
Adds helper for constants as DATA sections.
This commit is contained in:
13
examples/geohash/geohash_test.go
Normal file
13
examples/geohash/geohash_test.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package geohash
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
//go:generate go run asm.go -out geohash.s -stubs stub.go
|
||||
|
||||
func TestEncodeIntMountEverest(t *testing.T) {
|
||||
if EncodeInt(27.988056, 86.925278) != 0xceb7f254240fd612 {
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user