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

Function test_repeat_context_panic

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

Source from the content-addressed store, hash-verified

59
60#[test]
61fn test_repeat_context_panic() {
62 use optional::Optioned;
63 // pattern p = re.compile(r'(?:a*?(xx)??z)*')
64 // START GENERATED by generate_tests.py
65 #[rustfmt::skip] let p = Pattern { pattern: "(?:a*?(xx)??z)*", code: &[14, 4, 0, 0, 4294967295, 23, 25, 0, 4294967295, 26, 6, 0, 4294967295, 16, 97, 1, 23, 11, 0, 1, 17, 0, 16, 120, 16, 120, 17, 1, 19, 16, 122, 18, 1] };
66 // END GENERATED
67 let (req, mut state) = p.state("axxzaz");
68 assert!(state.py_match(&req));
69 assert_eq!(
70 *state.marks.raw(),
71 vec![Optioned::some(1), Optioned::some(3)]
72 );
73}
74
75#[test]
76fn test_double_max_until() {

Callers

nothing calls this directly

Calls 1

stateMethod · 0.45

Tested by

no test coverage detected