mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 18:03:51 +01:00
14 lines
604 B
Rust
14 lines
604 B
Rust
|
use nu_test_support::nu;
|
||
|
|
||
|
#[test]
|
||
|
fn interleave_external_commands() {
|
||
|
let result = nu!("interleave \
|
||
|
{ nu -c 'print hello; print world' | lines | each { 'greeter: ' ++ $in } } \
|
||
|
{ nu -c 'print nushell; print rocks' | lines | each { 'evangelist: ' ++ $in } } | \
|
||
|
each { print }; null");
|
||
|
assert!(result.out.contains("greeter: hello"), "{}", result.out);
|
||
|
assert!(result.out.contains("greeter: world"), "{}", result.out);
|
||
|
assert!(result.out.contains("evangelist: nushell"), "{}", result.out);
|
||
|
assert!(result.out.contains("evangelist: rocks"), "{}", result.out);
|
||
|
}
|