Make every stream-able (#2120)

* Make every stream-able

* Make each over ranges stream-able
This commit is contained in:
Jonathan Turner
2020-07-06 01:23:27 -07:00
committed by GitHub
parent a1a0710ee6
commit c3ba1e476f
5 changed files with 109 additions and 63 deletions

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