()
| 600 | |
| 601 | #[test] |
| 602 | fn test_order_conflict_add_insertion() { |
| 603 | let pos = make_position(42, 100); |
| 604 | let mut conflict = OrderConflict::new(pos); |
| 605 | |
| 606 | let v1 = make_vertex(100, 0, 10); |
| 607 | let v2 = make_vertex(200, 0, 20); |
| 608 | |
| 609 | conflict.add_insertion(v1, NodeId::new(100)); |
| 610 | conflict.add_insertion(v2, NodeId::new(200)); |
| 611 | |
| 612 | assert_eq!(conflict.conflict_count(), 2); |
| 613 | assert_eq!(conflict.changes.len(), 2); |
| 614 | } |
| 615 | |
| 616 | #[test] |
| 617 | fn test_order_conflict_no_duplicates() { |
nothing calls this directly
no test coverage detected