()
| 85 | |
| 86 | #[test] |
| 87 | fn test_info_single() { |
| 88 | // pattern p = re.compile(r'aa*') |
| 89 | // START GENERATED by generate_tests.py |
| 90 | #[rustfmt::skip] let p = Pattern { pattern: "aa*", code: &[14, 8, 1, 1, 4294967295, 1, 1, 97, 0, 16, 97, 24, 6, 0, 4294967295, 16, 97, 1, 1] }; |
| 91 | // END GENERATED |
| 92 | let (req, mut state) = p.state("baaaa"); |
| 93 | assert!(state.search(req)); |
| 94 | assert_eq!(state.start, 1); |
| 95 | assert_eq!(state.cursor.position, 5); |
| 96 | } |
| 97 | |
| 98 | #[test] |
| 99 | fn test_info_single2() { |