2020-05-25 17:05:26 +00:00
|
|
|
use crate::common::util::*;
|
2015-11-16 05:25:01 +00:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_combine_pairs_of_lines() {
|
2021-03-10 22:19:12 +00:00
|
|
|
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");
|
|
|
|
}
|
2015-11-16 05:25:01 +00:00
|
|
|
}
|