Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestPickAlgorithm (0.22 sec)

  1. src/strings/replace_test.go

    	{NewReplacer("", "X"), "*strings.genericReplacer"},
    	{NewReplacer("a", "1", "b", "12", "cde", "123"), "*strings.genericReplacer"},
    }
    
    // TestPickAlgorithm tests that NewReplacer picks the correct algorithm.
    func TestPickAlgorithm(t *testing.T) {
    	for i, tc := range algorithmTestCases {
    		got := fmt.Sprintf("%T", tc.r.Replacer())
    		if got != tc.want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 22:53:05 UTC 2017
    - 14.1K bytes
    - Viewed (0)
Back to top