mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 10:36:00 +02:00
Allow invocations and fix span error reporting.
This commit is contained in:
@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user