From 2dcfecbbd7f97f2bfe9901c4d364dddaf25b420c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1dn=C3=ADk?= Date: Fri, 29 Oct 2021 23:57:33 +0300 Subject: [PATCH] Add test for multi-word alias --- src/tests.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tests.rs b/src/tests.rs index a3146456c8..4640ce4d9d 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -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")