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

Function test_zerowidth

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

Source from the content-addressed store, hash-verified

47
48#[test]
49fn test_zerowidth() {
50 // pattern p = re.compile(r'\b|:+')
51 // START GENERATED by generate_tests.py
52 #[rustfmt::skip] let p = Pattern { pattern: "\\b|:+", code: &[14, 4, 0, 0, 4294967295, 7, 5, 6, 10, 15, 12, 10, 24, 6, 1, 4294967295, 16, 58, 1, 15, 2, 0, 1] };
53 // END GENERATED
54 let (mut req, mut state) = p.state("a:");
55 req.must_advance = true;
56 assert!(state.search(req));
57 assert_eq!(state.cursor.position, 1);
58}
59
60#[test]
61fn test_repeat_context_panic() {

Callers

nothing calls this directly

Calls 1

stateMethod · 0.45

Tested by

no test coverage detected