(id: &str, text: &str)
| 486 | } |
| 487 | |
| 488 | fn scope(id: &str, text: &str) -> ScopeItem { |
| 489 | ScopeItem { |
| 490 | type_: NodeType::ScopeItem.as_str().to_string(), |
| 491 | id: id.to_string(), |
| 492 | text: text.to_string(), |
| 493 | files: Vec::new(), |
| 494 | } |
| 495 | } |
| 496 | |
| 497 | #[test] |
| 498 | fn render_includes_scope_and_constraints() { |