mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
MAINT: More error test coverage for list parsing.
This commit is contained in:
parent
92ef85d068
commit
d407623709
@ -418,3 +418,14 @@ fn test_format_expr_unclosed_parens_compile_failure() {
|
||||
],
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_list_unclosed_bracket_compile_failure() {
|
||||
assert_build_failure(
|
||||
"[1",
|
||||
vec![
|
||||
Regex::new(r"Expected \(\]\) but got \(\)").unwrap(),
|
||||
Regex::new(r"at <eval> line: 1, column: 3").unwrap(),
|
||||
],
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user