MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / encode_extremes

Function encode_extremes

nodedb-spatial/src/geohash.rs:430–437  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

428
429 #[test]
430 fn encode_extremes() {
431 // Corners of the world.
432 let ne = geohash_encode(180.0, 90.0, 6);
433 let sw = geohash_encode(-180.0, -90.0, 6);
434 assert!(!ne.is_empty());
435 assert!(!sw.is_empty());
436 assert_ne!(ne, sw);
437 }
438
439 #[test]
440 fn base32_all_chars_valid() {

Callers

nothing calls this directly

Calls 1

geohash_encodeFunction · 0.85

Tested by

no test coverage detected