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

Function normalize_int_hi_maps_to_max

nodedb-array/src/coord/normalize.rs:175–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173
174 #[test]
175 fn normalize_int_hi_maps_to_max() {
176 let s = schema_2d();
177 let n = normalize_coord(&s, &[CoordValue::Int64(100), CoordValue::Int64(100)], 8).unwrap();
178 assert_eq!(n, vec![255, 255]);
179 }
180
181 #[test]
182 fn normalize_rejects_out_of_domain() {

Callers

nothing calls this directly

Calls 2

schema_2dFunction · 0.85
normalize_coordFunction · 0.85

Tested by

no test coverage detected