diff --git a/crates/erg_parser/tests/parse_test.rs b/crates/erg_parser/tests/parse_test.rs index 8b780a36..a15be423 100644 --- a/crates/erg_parser/tests/parse_test.rs +++ b/crates/erg_parser/tests/parse_test.rs @@ -84,6 +84,11 @@ fn parse_invalid_class_definition() -> Result<(), ()> { expect_failure("tests/invalid_class_definition.er", 0, 7) } +#[test] +fn parse_missing_paren() -> Result<(), ()> { + expect_failure("tests/missing_paren.er", 0, 1) +} + #[test] fn parse_warns() -> Result<(), ()> { expect_success("tests/warns.er", 1) diff --git a/crates/erg_parser/tests/unmatched_paren.er b/crates/erg_parser/tests/unmatched_paren.er new file mode 100644 index 00000000..fdcb1043 --- /dev/null +++ b/crates/erg_parser/tests/unmatched_paren.er @@ -0,0 +1 @@ +func a, b) = a + b \ No newline at end of file