mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 17:58:06 +00:00
e1626b8c64
* ptx: ignore empty -W regex * ptx: test to verify empty -W regex is ignored * tests/ptx: verify word regexp from cmd-line is used
73 lines
1.9 KiB
Rust
73 lines
1.9 KiB
Rust
use crate::common::util::*;
|
|
|
|
#[test]
|
|
fn gnu_ext_disabled_roff_no_ref() {
|
|
new_ucmd!()
|
|
.args(&["-G", "-R", "input"])
|
|
.succeeds()
|
|
.stdout_only_fixture("gnu_ext_disabled_roff_no_ref.expected");
|
|
}
|
|
|
|
#[test]
|
|
fn gnu_ext_disabled_roff_no_ref_empty_word_regexp() {
|
|
new_ucmd!()
|
|
.args(&["-G", "-R", "-W", "", "input"])
|
|
.succeeds()
|
|
.stdout_only_fixture("gnu_ext_disabled_roff_no_ref.expected");
|
|
}
|
|
|
|
#[test]
|
|
fn gnu_ext_disabled_roff_no_ref_word_regexp_exc_space() {
|
|
new_ucmd!()
|
|
.args(&["-G", "-R", "-W", "[^\t\n]+", "input"])
|
|
.succeeds()
|
|
.stdout_only_fixture("gnu_ext_disabled_roff_no_ref_word_regexp_exc_space.expected");
|
|
}
|
|
|
|
#[test]
|
|
fn gnu_ext_disabled_roff_input_ref() {
|
|
new_ucmd!()
|
|
.args(&["-G", "-r", "-R", "input"])
|
|
.succeeds()
|
|
.stdout_only_fixture("gnu_ext_disabled_roff_input_ref.expected");
|
|
}
|
|
|
|
#[test]
|
|
fn gnu_ext_disabled_roff_auto_ref() {
|
|
new_ucmd!()
|
|
.args(&["-G", "-A", "-R", "input"])
|
|
.succeeds()
|
|
.stdout_only_fixture("gnu_ext_disabled_roff_auto_ref.expected");
|
|
}
|
|
|
|
#[test]
|
|
fn gnu_ext_disabled_tex_no_ref() {
|
|
new_ucmd!()
|
|
.args(&["-G", "-T", "-R", "input"])
|
|
.succeeds()
|
|
.stdout_only_fixture("gnu_ext_disabled_tex_no_ref.expected");
|
|
}
|
|
|
|
#[test]
|
|
fn gnu_ext_disabled_tex_input_ref() {
|
|
new_ucmd!()
|
|
.args(&["-G", "-T", "-r", "-R", "input"])
|
|
.succeeds()
|
|
.stdout_only_fixture("gnu_ext_disabled_tex_input_ref.expected");
|
|
}
|
|
|
|
#[test]
|
|
fn gnu_ext_disabled_tex_auto_ref() {
|
|
new_ucmd!()
|
|
.args(&["-G", "-T", "-A", "-R", "input"])
|
|
.succeeds()
|
|
.stdout_only_fixture("gnu_ext_disabled_tex_auto_ref.expected");
|
|
}
|
|
|
|
#[test]
|
|
fn gnu_ext_disabled_ignore_and_only_file() {
|
|
new_ucmd!()
|
|
.args(&["-G", "-o", "only", "-i", "ignore", "input"])
|
|
.succeeds()
|
|
.stdout_only_fixture("gnu_ext_disabled_ignore_and_only_file.expected");
|
|
}
|