mirror of
https://github.com/nushell/nushell.git
synced 2024-12-16 12:12:19 +01:00
Add test for multi-word alias
This commit is contained in:
parent
751595e72e
commit
2dcfecbbd7
@ -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]
|
||||
fn block_param1() -> TestResult {
|
||||
run_test("[3] | each { $it + 10 } | get 0", "13")
|
||||
|
Loading…
Reference in New Issue
Block a user