2020-05-25 17:05:26 +00:00
|
|
|
use crate::common::util::*;
|
2015-05-30 07:34:23 +00:00
|
|
|
|
|
|
|
#[test]
|
2021-05-30 05:10:54 +00:00
|
|
|
fn gnu_ext_disabled_rightward_no_ref() {
|
2020-04-13 18:36:03 +00:00
|
|
|
new_ucmd!()
|
|
|
|
.args(&["-G", "-R", "input"])
|
|
|
|
.succeeds()
|
2021-05-30 05:10:54 +00:00
|
|
|
.stdout_only_fixture("gnu_ext_disabled_rightward_no_ref.expected");
|
2015-05-30 07:34:23 +00:00
|
|
|
}
|
|
|
|
|
2021-03-12 20:52:37 +00:00
|
|
|
#[test]
|
2021-05-30 05:10:54 +00:00
|
|
|
fn gnu_ext_disabled_rightward_no_ref_empty_word_regexp() {
|
2021-03-12 20:52:37 +00:00
|
|
|
new_ucmd!()
|
|
|
|
.args(&["-G", "-R", "-W", "", "input"])
|
|
|
|
.succeeds()
|
2021-05-30 05:10:54 +00:00
|
|
|
.stdout_only_fixture("gnu_ext_disabled_rightward_no_ref.expected");
|
2021-03-12 20:52:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
2021-05-30 05:10:54 +00:00
|
|
|
fn gnu_ext_disabled_rightward_no_ref_word_regexp_exc_space() {
|
2021-03-12 20:52:37 +00:00
|
|
|
new_ucmd!()
|
|
|
|
.args(&["-G", "-R", "-W", "[^\t\n]+", "input"])
|
|
|
|
.succeeds()
|
2021-05-30 05:10:54 +00:00
|
|
|
.stdout_only_fixture("gnu_ext_disabled_rightward_no_ref_word_regexp_exc_space.expected");
|
2021-03-12 20:52:37 +00:00
|
|
|
}
|
|
|
|
|
2015-05-30 07:34:23 +00:00
|
|
|
#[test]
|
2021-05-30 05:10:54 +00:00
|
|
|
fn gnu_ext_disabled_rightward_input_ref() {
|
2020-04-13 18:36:03 +00:00
|
|
|
new_ucmd!()
|
|
|
|
.args(&["-G", "-r", "-R", "input"])
|
|
|
|
.succeeds()
|
2021-05-30 05:10:54 +00:00
|
|
|
.stdout_only_fixture("gnu_ext_disabled_rightward_input_ref.expected");
|
2015-05-30 07:34:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
2021-05-30 05:10:54 +00:00
|
|
|
fn gnu_ext_disabled_rightward_auto_ref() {
|
2020-04-13 18:36:03 +00:00
|
|
|
new_ucmd!()
|
|
|
|
.args(&["-G", "-A", "-R", "input"])
|
|
|
|
.succeeds()
|
2021-05-30 05:10:54 +00:00
|
|
|
.stdout_only_fixture("gnu_ext_disabled_rightward_auto_ref.expected");
|
2015-05-30 07:34:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn gnu_ext_disabled_tex_no_ref() {
|
2020-04-13 18:36:03 +00:00
|
|
|
new_ucmd!()
|
|
|
|
.args(&["-G", "-T", "-R", "input"])
|
|
|
|
.succeeds()
|
|
|
|
.stdout_only_fixture("gnu_ext_disabled_tex_no_ref.expected");
|
2015-05-30 07:34:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn gnu_ext_disabled_tex_input_ref() {
|
2020-04-13 18:36:03 +00:00
|
|
|
new_ucmd!()
|
|
|
|
.args(&["-G", "-T", "-r", "-R", "input"])
|
|
|
|
.succeeds()
|
|
|
|
.stdout_only_fixture("gnu_ext_disabled_tex_input_ref.expected");
|
2015-05-30 07:34:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn gnu_ext_disabled_tex_auto_ref() {
|
2020-04-13 18:36:03 +00:00
|
|
|
new_ucmd!()
|
|
|
|
.args(&["-G", "-T", "-A", "-R", "input"])
|
|
|
|
.succeeds()
|
|
|
|
.stdout_only_fixture("gnu_ext_disabled_tex_auto_ref.expected");
|
2015-05-30 07:34:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn gnu_ext_disabled_ignore_and_only_file() {
|
2020-04-13 18:36:03 +00:00
|
|
|
new_ucmd!()
|
|
|
|
.args(&["-G", "-o", "only", "-i", "ignore", "input"])
|
|
|
|
.succeeds()
|
|
|
|
.stdout_only_fixture("gnu_ext_disabled_ignore_and_only_file.expected");
|
2015-06-05 23:55:02 +00:00
|
|
|
}
|