mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 17:58:06 +00:00
374a4fde86
- added `-` as the default input, since `paste` reads stdin if no file is provided - `paste` also supports providing `-` multiple times - added a test for it
24 lines
612 B
Rust
24 lines
612 B
Rust
use crate::common::util::*;
|
|
|
|
#[test]
|
|
fn test_combine_pairs_of_lines() {
|
|
for s in vec!["-s", "--serial"] {
|
|
for d in vec!["-d", "--delimiters"] {
|
|
new_ucmd!()
|
|
.args(&[s, d, "\t\n", "html_colors.txt"])
|
|
.run()
|
|
.stdout_is_fixture("html_colors.expected");
|
|
}
|
|
}
|
|
}
|
|
|
|
#[test]
|
|
fn test_multi_stdin() {
|
|
for d in vec!["-d", "--delimiters"] {
|
|
new_ucmd!()
|
|
.args(&[d, "\t\n", "-", "-"])
|
|
.pipe_in_fixture("html_colors.txt")
|
|
.succeeds()
|
|
.stdout_is_fixture("html_colors.expected");
|
|
}
|
|
}
|