()
| 504 | |
| 505 | #[test] |
| 506 | fn test_up_context_structure() { |
| 507 | // Up context: vertices that come BEFORE new content |
| 508 | // We connect FROM predecessors TO new span |
| 509 | let hash = Hash::of(b"parent"); |
| 510 | let up_ctx = make_external_position(Some(hash), 50); |
| 511 | |
| 512 | // The position points to the END of the parent content |
| 513 | assert_eq!(up_ctx.pos, ChangePosition::new(50)); |
| 514 | } |
| 515 | |
| 516 | #[test] |
| 517 | fn test_down_context_structure() { |
nothing calls this directly
no test coverage detected