From 50dc0ad207df0f3d039a3d25de61cc258064b788 Mon Sep 17 00:00:00 2001 From: JT Date: Mon, 9 Aug 2021 19:55:06 +1200 Subject: [PATCH] aliases --- src/tests.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tests.rs b/src/tests.rs index 2397be869f..7e41d5dbae 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -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", + ) +}