When parsing multiple graphs (Thanks again!), the parser does not error on parsing errors if the first graph has no errors:
#[test]fn multiple(){assert_eq!(dot_parser::ast::Graphs::try_from("graph { A -> subgraph { B C } }\ngraph { A -> }").unwrap().graphs.len(),1);assert!(dot_parser::ast::Graph::try_from("graph { A -> }").is_err());}
this test passes when the first assert should not even get hit (it should raise an error) not just ignore the graph.
When parsing multiple graphs (Thanks again!), the parser does not error on parsing errors if the first graph has no errors:
```rust
#[test]
fn multiple() {
assert_eq!(
dot_parser::ast::Graphs::try_from("graph { A -> subgraph { B C } }\ngraph { A -> }")
.unwrap()
.graphs
.len(),
1
);
assert!(dot_parser::ast::Graph::try_from("graph { A -> }").is_err());
}
```
this test passes when the first assert should not even get hit (it should raise an error) not just ignore the graph.