1
0
mirror of https://github.com/nushell/nushell.git synced 2025-08-14 02:28:35 +02:00
This commit is contained in:
JT
2021-08-09 19:55:06 +12:00
parent 3da4f02ffa
commit 50dc0ad207

@ -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",
)
}