()
| 1252 | |
| 1253 | #[test] |
| 1254 | fn test_vertex_encoding_ordering() { |
| 1255 | // Verify that encoded vertices sort correctly (by change_id, then start, then end) |
| 1256 | let v1 = encode_vertex(1, 0, 10); |
| 1257 | let v2 = encode_vertex(1, 10, 20); |
| 1258 | let v3 = encode_vertex(2, 0, 10); |
| 1259 | |
| 1260 | assert!(v1 < v2, "same change, v1 should be before v2"); |
| 1261 | assert!(v2 < v3, "v2 should be before v3 (different change)"); |
| 1262 | } |
| 1263 | |
| 1264 | #[test] |
| 1265 | fn test_vertex_encoding_ordering_across_byte_boundary() { |
nothing calls this directly
no test coverage detected