Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEmptyTokens (0.15 sec)

  1. src/bufio/scan_test.go

    		t.Fatalf("got %d fields, expected %d", i, len(values))
    	}
    	if err := s.Err(); err != nil {
    		t.Fatal(err)
    	}
    }
    
    func TestEmptyTokens(t *testing.T) {
    	testEmptyTokens(t, "1,2,3,", []string{"1", "2", "3", ""})
    }
    
    func TestWithNoEmptyTokens(t *testing.T) {
    	testEmptyTokens(t, "1,2,3", []string{"1", "2", "3"})
    }
    
    func loopAtEOFSplit(data []byte, atEOF bool) (advance int, token []byte, err error) {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 22 16:22:42 UTC 2023
    - 14.3K bytes
    - Viewed (0)
Back to top