Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testSubmatchBytes (0.25 sec)

  1. src/regexp/find_test.go

    	for _, test := range findTests {
    		testFindAllIndex(&test, MustCompile(test.pat).FindAllStringIndex(test.text, -1), t)
    	}
    }
    
    // Now come the Submatch cases.
    
    func testSubmatchBytes(test *FindTest, n int, submatches []int, result [][]byte, t *testing.T) {
    	if len(submatches) != len(result)*2 {
    		t.Errorf("match %d: expected %d submatches; got %d: %s", n, len(submatches)/2, len(result), test)
    		return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 11 15:28:50 UTC 2021
    - 16.3K bytes
    - Viewed (0)
Back to top