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

Function zorder_round_trip_2d

nodedb-array/src/coord/zorder.rs:62–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60
61 #[test]
62 fn zorder_round_trip_2d() {
63 for x in 0..16u64 {
64 for y in 0..16u64 {
65 let idx = encode(&[x, y], 4).unwrap();
66 assert_eq!(decode(idx, 2, 4).unwrap(), vec![x, y]);
67 }
68 }
69 }
70
71 #[test]
72 fn zorder_round_trip_3d() {

Callers

nothing calls this directly

Calls 1

encodeFunction · 0.70

Tested by

no test coverage detected