mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 19:37:45 +02:00
Make every
stream-able (#2120)
* Make every stream-able * Make each over ranges stream-able
This commit is contained in:
13
crates/nu-cli/tests/commands/echo.rs
Normal file
13
crates/nu-cli/tests/commands/echo.rs
Normal file
@ -0,0 +1,13 @@
|
||||
use nu_test_support::{nu, pipeline};
|
||||
|
||||
#[test]
|
||||
fn echo_range_is_lazy() {
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats", pipeline(
|
||||
r#"
|
||||
echo 1..10000000000 | first 3 | echo $it | to json
|
||||
"#
|
||||
));
|
||||
|
||||
assert_eq!(actual.out, "[1,2,3]");
|
||||
}
|
@ -11,6 +11,7 @@ mod cp;
|
||||
mod default;
|
||||
mod drop;
|
||||
mod each;
|
||||
mod echo;
|
||||
mod enter;
|
||||
mod every;
|
||||
mod first;
|
||||
|
Reference in New Issue
Block a user