|
0 |
Index: ripgrep/tests/feature.rs
|
|
1 |
===================================================================
|
|
2 |
--- ripgrep.orig/tests/feature.rs
|
|
3 |
+++ ripgrep/tests/feature.rs
|
|
4 |
@@ -445,15 +445,15 @@ For the Doctor Watsons of this world, as
|
|
5 |
});
|
|
6 |
|
|
7 |
// See: https://github.com/BurntSushi/ripgrep/issues/416
|
|
8 |
-rgtest!(f416_crlf_only_matching, |dir: Dir, mut cmd: TestCommand| {
|
|
9 |
- dir.create("sherlock", SHERLOCK_CRLF);
|
|
10 |
- cmd.arg("--crlf").arg("-o").arg(r"Sherlock$").arg("sherlock");
|
|
11 |
+// rgtest!(f416_crlf_only_matching, |dir: Dir, mut cmd: TestCommand| {
|
|
12 |
+// dir.create("sherlock", SHERLOCK_CRLF);
|
|
13 |
+// cmd.arg("--crlf").arg("-o").arg(r"Sherlock$").arg("sherlock");
|
|
14 |
|
|
15 |
- let expected = "\
|
|
16 |
-Sherlock\r
|
|
17 |
-";
|
|
18 |
- eqnice!(expected, cmd.stdout());
|
|
19 |
-});
|
|
20 |
+// let expected = "\
|
|
21 |
+// Sherlock\r
|
|
22 |
+// ";
|
|
23 |
+// eqnice!(expected, cmd.stdout());
|
|
24 |
+// });
|
|
25 |
|
|
26 |
// See: https://github.com/BurntSushi/ripgrep/issues/419
|
|
27 |
rgtest!(f419_zero_as_shortcut_for_null, |dir: Dir, mut cmd: TestCommand| {
|
|
28 |
Index: ripgrep/tests/json.rs
|
|
29 |
===================================================================
|
|
30 |
--- ripgrep.orig/tests/json.rs
|
|
31 |
+++ ripgrep/tests/json.rs
|
|
32 |
@@ -289,18 +289,18 @@ rgtest!(notutf8_file, |dir: Dir, mut cmd
|
|
33 |
// This test in particular checks that our match does _not_ include the `\r`
|
|
34 |
// even though the '$' may be rewritten as '(?:\r??$)' and could thus include
|
|
35 |
// `\r` in the match.
|
|
36 |
-rgtest!(crlf, |dir: Dir, mut cmd: TestCommand| {
|
|
37 |
- dir.create("sherlock", SHERLOCK_CRLF);
|
|
38 |
- cmd.arg("--json").arg("--crlf").arg(r"Sherlock$").arg("sherlock");
|
|
39 |
+// rgtest!(crlf, |dir: Dir, mut cmd: TestCommand| {
|
|
40 |
+// dir.create("sherlock", SHERLOCK_CRLF);
|
|
41 |
+// cmd.arg("--json").arg("--crlf").arg(r"Sherlock$").arg("sherlock");
|
|
42 |
|
|
43 |
- let msgs = json_decode(&cmd.stdout());
|
|
44 |
+// let msgs = json_decode(&cmd.stdout());
|
|
45 |
|
|
46 |
- assert_eq!(
|
|
47 |
- msgs[1].unwrap_match().submatches[0].clone(),
|
|
48 |
- SubMatch {
|
|
49 |
- m: Data::text("Sherlock"),
|
|
50 |
- start: 56,
|
|
51 |
- end: 64,
|
|
52 |
- },
|
|
53 |
- );
|
|
54 |
-});
|
|
55 |
+// assert_eq!(
|
|
56 |
+// msgs[1].unwrap_match().submatches[0].clone(),
|
|
57 |
+// SubMatch {
|
|
58 |
+// m: Data::text("Sherlock"),
|
|
59 |
+// start: 56,
|
|
60 |
+// end: 64,
|
|
61 |
+// },
|
|
62 |
+// );
|
|
63 |
+// });
|