mirror of
https://github.com/nushell/nushell
synced 2024-12-27 21:43:09 +00:00
aliases
This commit is contained in:
parent
3da4f02ffa
commit
50dc0ad207
1 changed files with 8 additions and 0 deletions
|
@ -143,3 +143,11 @@ fn subcommand() -> TestResult {
|
|||
fn alias_1() -> TestResult {
|
||||
run_test("def foo [$x] { $x + 10 }; alias f = foo; f 100", "110")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn alias_2() -> TestResult {
|
||||
run_test(
|
||||
"def foo [$x $y] { $x + $y + 10 }; alias f = foo 33; f 100",
|
||||
"143",
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue