Skip to content

Commit 93eb803

Browse files
committed
test(parse): add neg test
1 parent e4a424b commit 93eb803

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

crates/erg_parser/tests/parse_test.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ fn parse_invalid_class_definition() -> Result<(), ()> {
8484
expect_failure("tests/invalid_class_definition.er", 0, 7)
8585
}
8686

87+
#[test]
88+
fn parse_missing_paren() -> Result<(), ()> {
89+
expect_failure("tests/missing_paren.er", 0, 1)
90+
}
91+
8792
#[test]
8893
fn parse_warns() -> Result<(), ()> {
8994
expect_success("tests/warns.er", 1)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
func a, b) = a + b

0 commit comments

Comments
 (0)