MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_info_single

Function test_info_single

crates/sre_engine/tests/tests.rs:87–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85
86#[test]
87fn 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]
99fn test_info_single2() {

Callers

nothing calls this directly

Calls 1

stateMethod · 0.45

Tested by

no test coverage detected