()
| 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() { |