mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-26 19:39:07 +00:00
test(parse): add neg test
This commit is contained in:
parent
e4a424b843
commit
93eb803ee3
2 changed files with 6 additions and 0 deletions
|
@ -84,6 +84,11 @@ fn parse_invalid_class_definition() -> Result<(), ()> {
|
||||||
expect_failure("tests/invalid_class_definition.er", 0, 7)
|
expect_failure("tests/invalid_class_definition.er", 0, 7)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn parse_missing_paren() -> Result<(), ()> {
|
||||||
|
expect_failure("tests/missing_paren.er", 0, 1)
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn parse_warns() -> Result<(), ()> {
|
fn parse_warns() -> Result<(), ()> {
|
||||||
expect_success("tests/warns.er", 1)
|
expect_success("tests/warns.er", 1)
|
||||||
|
|
1
crates/erg_parser/tests/unmatched_paren.er
Normal file
1
crates/erg_parser/tests/unmatched_paren.er
Normal file
|
@ -0,0 +1 @@
|
||||||
|
func a, b) = a + b
|
Loading…
Add table
Add a link
Reference in a new issue