apply all the block run's stream. (#2339)

This commit is contained in:
Andrés N. Robalino
2020-08-12 02:51:24 -05:00
committed by GitHub
parent 87d71604ad
commit 48cfc9b598
4 changed files with 65 additions and 41 deletions

View File

@ -30,3 +30,19 @@ fn sets_the_column_from_a_block_run_output() {
assert_eq!(actual.out, "0.7.0");
}
#[test]
fn sets_the_column_from_a_block_full_stream_output() {
let actual = nu!(
cwd: "tests/fixtures/formats", pipeline(
r#"
wrap content
| update content { open --raw cargo_sample.toml | lines | first 5 }
| get content.1
| str contains "nu"
| echo $it
"#
));
assert_eq!(actual.out, "true");
}