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

Function zorder_round_trip_3d

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

Source from the content-addressed store, hash-verified

70
71 #[test]
72 fn zorder_round_trip_3d() {
73 for x in 0..8u64 {
74 for y in 0..8u64 {
75 for z in 0..8u64 {
76 let idx = encode(&[x, y, z], 3).unwrap();
77 assert_eq!(decode(idx, 3, 3).unwrap(), vec![x, y, z]);
78 }
79 }
80 }
81 }
82
83 #[test]
84 fn zorder_unique_2d() {

Callers

nothing calls this directly

Calls 1

encodeFunction · 0.70

Tested by

no test coverage detected