Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFindAllString (0.11 sec)

  1. src/regexp/find_test.go

    				}
    				expect := test.text[e[0]:e[1]]
    				if expect != string(got) {
    					t.Errorf("match %d: expected %q got %q: %s", k, expect, got, test)
    				}
    			}
    		}
    	}
    }
    
    func TestFindAllString(t *testing.T) {
    	for _, test := range findTests {
    		result := MustCompile(test.pat).FindAllString(test.text, -1)
    		switch {
    		case test.matches == nil && result == nil:
    			// ok
    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