def argument check (#604)

* def argument check

* corrected test

* clippy error
This commit is contained in:
Fernando Herrera
2021-12-27 19:13:52 +00:00
committed by GitHub
parent 1837acfc70
commit 53330c5676
6 changed files with 116 additions and 127 deletions

View File

@@ -47,7 +47,7 @@ fn def_twice_should_fail() -> TestResult {
#[test]
fn missing_parameters() -> TestResult {
fail_test(r#"def foo {}"#, "expected [")
fail_test(r#"def foo {}"#, "Missing required positional")
}
#[test]