Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTrimSpace (0.49 sec)

  1. src/bytes/bytes_test.go

    		got := ToValidUTF8([]byte(tc.in), []byte(tc.repl))
    		if !Equal(got, []byte(tc.out)) {
    			t.Errorf("ToValidUTF8(%q, %q) = %q; want %q", tc.in, tc.repl, got, tc.out)
    		}
    	}
    }
    
    func TestTrimSpace(t *testing.T) { runStringTests(t, TrimSpace, "TrimSpace", trimSpaceTests) }
    
    type RepeatTest struct {
    	in, out string
    	count   int
    }
    
    var longString = "a" + string(make([]byte, 1<<16)) + "z"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
Back to top