You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 22, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: tests/tests.rs
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ fn test_2427() {
24
24
// END GENERATED
25
25
letmut state = lookbehind.state("x",0..usize::MAX);
26
26
state = state.pymatch();
27
-
assert!(state.has_matched == Some(true));
27
+
assert!(state.has_matched);
28
28
}
29
29
30
30
#[test]
@@ -35,7 +35,7 @@ fn test_assert() {
35
35
// END GENERATED
36
36
letmut state = positive_lookbehind.state("abcdef",0..usize::MAX);
37
37
state = state.search();
38
-
assert!(state.has_matched == Some(true));
38
+
assert!(state.has_matched);
39
39
}
40
40
41
41
#[test]
@@ -46,5 +46,17 @@ fn test_string_boundaries() {
46
46
// END GENERATED
47
47
letmut state = big_b.state("",0..usize::MAX);
48
48
state = state.search();
49
-
assert!(state.has_matched == None)
49
+
assert!(!state.has_matched);
50
+
}
51
+
52
+
#[test]
53
+
fntest_zerowidth(){
54
+
// pattern p = re.compile(r'\b|:+')
55
+
// START GENERATED by generate_tests.py
56
+
#[rustfmt::skip]let p = Pattern{code:&[15,4,0,0,4294967295,7,5,6,10,16,12,10,25,6,1,4294967295,17,58,1,16,2,0,1],flags:SreFlag::from_bits_truncate(32)};
0 commit comments