1
0
mirror of https://github.com/nushell/nushell.git synced 2025-04-14 08:18:17 +02:00
nushell/crates/nu-command/tests/commands/alias.rs
JT c023d4111a
Alias to keywords (eg source) ()
* Allow aliasing source

* Add test
2022-03-13 11:30:37 -07:00

14 lines
267 B
Rust

use nu_test_support::{nu, pipeline};
#[test]
fn echo_range_is_lazy() {
let actual = nu!(
cwd: "tests/fixtures/formats", pipeline(
r#"
alias bar = source sample_def.nu; bar; greet
"#
));
assert_eq!(actual.out, "hello");
}