mirror of
https://github.com/nushell/nushell
synced 2025-01-03 16:58:58 +00:00
bd5836e25d
* WIP getting scopes right * finish adding initial support * Finish with alias and add startup commands
17 lines
393 B
Rust
17 lines
393 B
Rust
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}
|
|
double_echo 1 2 | to-json
|
|
"#
|
|
);
|
|
|
|
assert_eq!(actual, "[1,2]");
|
|
})
|
|
}
|