mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-09-16 08:26:28 +02:00
Fix issue number mixup.
Thanks @bluss!
This commit is contained in:
@@ -896,22 +896,15 @@ clean!(regression_206, "test", ".", |wd: WorkDir, mut cmd: Command| {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// See: https://github.com/BurntSushi/ripgrep/issues/210
|
// See: https://github.com/BurntSushi/ripgrep/issues/210
|
||||||
clean!(regression_210, "test", ".", |wd: WorkDir, mut cmd: Command| {
|
|
||||||
wd.create_dir("foo");
|
|
||||||
cmd.arg("--ignore-file").arg("foo");
|
|
||||||
wd.assert_err(&mut cmd);
|
|
||||||
});
|
|
||||||
|
|
||||||
// See: https://github.com/BurntSushi/ripgrep/issues/228
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
#[test]
|
#[test]
|
||||||
fn regression_228() {
|
fn regression_210() {
|
||||||
use std::ffi::OsStr;
|
use std::ffi::OsStr;
|
||||||
use std::os::unix::ffi::OsStrExt;
|
use std::os::unix::ffi::OsStrExt;
|
||||||
|
|
||||||
let badutf8 = OsStr::from_bytes(&b"foo\xffbar"[..]);
|
let badutf8 = OsStr::from_bytes(&b"foo\xffbar"[..]);
|
||||||
|
|
||||||
let wd = WorkDir::new("regression_228");
|
let wd = WorkDir::new("regression_210");
|
||||||
let mut cmd = wd.command();
|
let mut cmd = wd.command();
|
||||||
wd.create(badutf8, "test");
|
wd.create(badutf8, "test");
|
||||||
cmd.arg("-H").arg("test").arg(badutf8);
|
cmd.arg("-H").arg("test").arg(badutf8);
|
||||||
@@ -920,6 +913,13 @@ fn regression_228() {
|
|||||||
assert_eq!(out.stdout, b"foo\xffbar:test\n".to_vec());
|
assert_eq!(out.stdout, b"foo\xffbar:test\n".to_vec());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// See: https://github.com/BurntSushi/ripgrep/issues/228
|
||||||
|
clean!(regression_228, "test", ".", |wd: WorkDir, mut cmd: Command| {
|
||||||
|
wd.create_dir("foo");
|
||||||
|
cmd.arg("--ignore-file").arg("foo");
|
||||||
|
wd.assert_err(&mut cmd);
|
||||||
|
});
|
||||||
|
|
||||||
// See: https://github.com/BurntSushi/ripgrep/issues/7
|
// See: https://github.com/BurntSushi/ripgrep/issues/7
|
||||||
sherlock!(feature_7, "-fpat", "sherlock", |wd: WorkDir, mut cmd: Command| {
|
sherlock!(feature_7, "-fpat", "sherlock", |wd: WorkDir, mut cmd: Command| {
|
||||||
wd.create("pat", "Sherlock\nHolmes");
|
wd.create("pat", "Sherlock\nHolmes");
|
||||||
|
Reference in New Issue
Block a user