Allow invocations and fix span error reporting.

This commit is contained in:
Andrés N. Robalino
2020-08-26 05:56:45 -05:00
parent 08d1be79fc
commit 034c33c2b5
8 changed files with 114 additions and 108 deletions

View File

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