summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2020-02-17 15:34:59 -0500
committerAndrew Gallant <jamslam@gmail.com>2020-02-17 17:16:28 -0500
commit75cbe88fa2993bcb12cbbddb32670cba30527716 (patch)
treeda811502ed5db6b08949dd11686f06ede576765c /tests
parent711426a632aee0affb7009cd8e3492c4ff7273e8 (diff)
cli: add --no-unicode, deprecate --no-pcre2-unicode
This adds a universal --no-unicode flag that is intended to work for all supported regex engines. There is no point in retaining --no-pcre2-unicode, so we make them aliases to the new flags and deprecate them.
Diffstat (limited to 'tests')
-rw-r--r--tests/feature.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/feature.rs b/tests/feature.rs
index 3d61f459..f3cf8463 100644
--- a/tests/feature.rs
+++ b/tests/feature.rs
@@ -834,3 +834,8 @@ rgtest!(context_sep_empty, |dir: Dir, mut cmd: TestCommand| {
]);
eqnice!("foo\nctx\n\nfoo\nctx\n", cmd.stdout());
});
+
+rgtest!(no_unicode, |dir: Dir, mut cmd: TestCommand| {
+ dir.create("test", "δ");
+ cmd.arg("-i").arg("--no-unicode").arg("Δ").assert_err();
+});