Skip to content

Commit 59ccaa1

Browse files
committed
Fix literal test and useless property computation
1 parent 31b09a5 commit 59ccaa1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

regex-syntax/src/hir/literal.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2458,13 +2458,13 @@ mod tests {
24582458
#[test]
24592459
#[ignore = "Missing parser support for lookaround"]
24602460
fn lookaround() {
2461-
assert_eq!(exact(["ab"]), e(r"a(?<=qwe)b"));
2461+
assert_eq!(exact(["ab"]), e(r"a(?<=qwa)b"));
24622462
assert_eq!(exact(["ab"]), e(r"a(?<!qwe)b"));
24632463

24642464
assert_eq!(exact(["ab"]), e(r"(?<=qwe)ab"));
24652465
assert_eq!(exact(["ab"]), e(r"(?<!qwe)ab"));
24662466

2467-
assert_eq!(exact(["ab"]), e(r"ab(?<=qwe)"));
2467+
assert_eq!(exact(["ab"]), e(r"ab(?<=qab)"));
24682468
assert_eq!(exact(["ab"]), e(r"ab(?<!qwe)"));
24692469

24702470
let expected = (seq([I("aZ"), E("ab")]), seq([I("Zb"), E("ab")]));

regex-syntax/src/hir/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2569,8 +2569,6 @@ impl Properties {
25692569
maximum_len: Some(0),
25702570
literal: false,
25712571
alternation_literal: false,
2572-
explicit_captures_len: sub_p.explicit_captures_len(),
2573-
static_explicit_captures_len: sub_p.static_explicit_captures_len(),
25742572
..*sub_p.0.clone()
25752573
};
25762574
Properties(Box::new(inner))

0 commit comments

Comments
 (0)