Skip to content

Commit

Permalink
Add one more unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ggiraldez committed Jul 3, 2024
1 parent 6087c38 commit 4a66c08
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/testlang/outputs/cargo/tests/src/query/parser_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,9 @@ fn test_fails_single_anchor() {
),
}
}

#[test]
fn test_fails_anchors_at_edge_of_alt_option() {
let result = Query::parse(r#"([TreeNode] | . [DelimitedIdentifier])+"#);
assert!(result.is_err(), "Expected parse failure");
}

0 comments on commit 4a66c08

Please sign in to comment.