Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for niddle (0.2 sec)

  1. src/bytes/bytes_test.go

    		}
    	}
    }
    
    func TestLastIndexByte(t *testing.T) {
    	testCases := []BinOpTest{
    		{"", "q", -1},
    		{"abcdef", "q", -1},
    		{"abcdefabcdef", "a", len("abcdef")},      // something in the middle
    		{"abcdefabcdef", "f", len("abcdefabcde")}, // last byte
    		{"zabcdefabcdef", "z", 0},                 // first byte
    		{"a☺b☻c☹d", "b", len("a☺")},               // non-ascii
    	}
    	for _, test := range testCases {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top