Soften the block arity checking (#5135)

This commit is contained in:
JT
2022-04-09 07:57:27 +12:00
committed by GitHub
parent aaec840b91
commit 0b85938415
2 changed files with 1 additions and 25 deletions

View File

@ -330,16 +330,6 @@ fn proper_missing_param() -> TestResult {
#[test]
fn block_arity_check1() -> TestResult {
fail_test(r#"ls | each { 1 }"#, "expected 1 block parameter")
}
#[test]
fn block_arity_check2() -> TestResult {
fail_test(r#"ls | reduce { 1 }"#, "expected 2 block parameters")
}
#[test]
fn block_arity_check3() -> TestResult {
fail_test(r#"ls | each { |x, y| 1}"#, "expected 1 block parameter")
}