Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestIndexByte (0.22 sec)

  1. src/cmd/internal/test2json/testdata/framebig.json

    {"Action":"run","Test":"TestIndexByte"}
    {"Action":"output","Test":"TestIndexByte","Output":"=== RUN   TestIndexByte\n"}
    {"Action":"output","Test":"TestIndexByte","Output":"--- PASS: TestIndexByte (0.00s)\n"}
    {"Action":"pass","Test":"TestIndexByte"}
    {"Action":"pass","Test":"TestIndexByte"}
    {"Action":"output","Test":"TestIndexByte","Output":"=== PASS  TestIndexByte\n"}
    {"Action":"run","Test":"TestLastIndexByte"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  2. src/strings/strings_test.go

    func TestIndexAny(t *testing.T)  { runIndexTests(t, IndexAny, "IndexAny", indexAnyTests) }
    func TestLastIndexAny(t *testing.T) {
    	runIndexTests(t, LastIndexAny, "LastIndexAny", lastIndexAnyTests)
    }
    
    func TestIndexByte(t *testing.T) {
    	for _, tt := range indexTests {
    		if len(tt.sep) != 1 {
    			continue
    		}
    		pos := IndexByte(tt.s, tt.sep[0])
    		if pos != tt.out {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    func TestIndexAny(t *testing.T)  { runIndexAnyTests(t, IndexAny, "IndexAny", indexAnyTests) }
    func TestLastIndexAny(t *testing.T) {
    	runIndexAnyTests(t, LastIndexAny, "LastIndexAny", lastIndexAnyTests)
    }
    
    func TestIndexByte(t *testing.T) {
    	for _, tt := range indexTests {
    		if len(tt.b) != 1 {
    			continue
    		}
    		a := []byte(tt.a)
    		b := tt.b[0]
    		pos := IndexByte(a, b)
    		if pos != tt.i {
    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