(symbol: u64)
| 187 | } |
| 188 | } |
| 189 | fn operations(symbol: u64) -> Vec<FileOps> { |
| 190 | let mut file = FileOps::edit(TrunkId::new(NodeId::new(symbol), 2), "f".into()); |
| 191 | file.add_line_op(LineOps::new( |
| 192 | BranchId::new(NodeId::ROOT, 0), |
| 193 | BranchOp::Insert { |
| 194 | after: Some(BranchId::new(NodeId::new(symbol), 4)), |
| 195 | content: vec![], |
| 196 | }, |
| 197 | )); |
| 198 | vec![file] |
| 199 | } |
| 200 | |
| 201 | #[test] |
| 202 | fn declarations_reject_root_unordered_duplicate_and_aliased_names() { |