mirror of
https://github.com/nushell/nushell
synced 2024-12-31 23:39:00 +00:00
c023d4111a
* Allow aliasing source * Add test
13 lines
267 B
Rust
13 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");
|
|
}
|