nushell/crates/nu-command/tests/commands/alias.rs

14 lines
267 B
Rust
Raw Normal View History

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");
}