Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCanBackquote (0.19 sec)

  1. src/strconv/quote_test.go

    	{`ABCDEFGHIJKLMNOPQRSTUVWXYZ`, true},
    	{`abcdefghijklmnopqrstuvwxyz`, true},
    	{`☺`, true},
    	{"\x80", false},
    	{"a\xe0\xa0z", false},
    	{"\ufeffabc", false},
    	{"a\ufeffz", false},
    }
    
    func TestCanBackquote(t *testing.T) {
    	for _, tt := range canbackquotetests {
    		if out := CanBackquote(tt.in); out != tt.out {
    			t.Errorf("CanBackquote(%q) = %v, want %v", tt.in, out, tt.out)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 9.6K bytes
    - Viewed (0)
Back to top