mirror of
https://github.com/nushell/nushell.git
synced 2024-12-02 13:24:30 +01:00
c3ba1e476f
* Make every stream-able * Make each over ranges stream-able
14 lines
275 B
Rust
14 lines
275 B
Rust
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]");
|
|
}
|