Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSwitchBacktrack (0.23 sec)

  1. src/regexp/all_test.go

    		t.Fatalf("makeOnePass succeeded; wanted nil")
    	}
    }
    
    // Check that the same machine can be used with the standard matcher
    // and then the backtracker when there are no captures.
    func TestSwitchBacktrack(t *testing.T) {
    	re := MustCompile(`a|b`)
    	long := make([]byte, maxBacktrackVector+1)
    
    	// The following sequence of Match calls used to panic. See issue #10319.
    	re.Match(long)     // triggers standard matcher
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 25.8K bytes
    - Viewed (0)
Back to top