mirror of
https://github.com/nushell/nushell
synced 2024-12-28 22:13:10 +00:00
Add test for multi-word alias
This commit is contained in:
parent
751595e72e
commit
2dcfecbbd7
1 changed files with 5 additions and 0 deletions
|
@ -247,6 +247,11 @@ fn alias_2() -> TestResult {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn alias_2_multi_word() -> TestResult {
|
||||||
|
run_test(r#"def "foo bar" [$x $y] { $x + $y + 10 }; alias f = foo bar 33; f 100"#, "143")
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn block_param1() -> TestResult {
|
fn block_param1() -> TestResult {
|
||||||
run_test("[3] | each { $it + 10 } | get 0", "13")
|
run_test("[3] | each { $it + 10 } | get 0", "13")
|
||||||
|
|
Loading…
Reference in a new issue