2020-04-15 07:43:23 +02:00
|
|
|
use nu_test_support::nu;
|
|
|
|
use nu_test_support::playground::Playground;
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn alias_args_work() {
|
|
|
|
Playground::setup("append_test_1", |dirs, _| {
|
|
|
|
let actual = nu!(
|
|
|
|
cwd: dirs.root(),
|
|
|
|
r#"
|
|
|
|
alias double_echo [a b] {echo $a $b}
|
2020-05-04 10:44:33 +02:00
|
|
|
double_echo 1 2 | to json
|
2020-04-15 07:43:23 +02:00
|
|
|
"#
|
|
|
|
);
|
|
|
|
|
2020-05-07 13:03:43 +02:00
|
|
|
assert_eq!(actual.out, "[1,2]");
|
2020-04-15 07:43:23 +02:00
|
|
|
})
|
|
|
|
}
|