mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Soften the block arity checking (#5135)
This commit is contained in:
@ -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")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user