Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestAtoi (0.13 sec)

  1. src/net/parse_test.go

    			t.Fatalf("%s:%d (#%d)\nbufio => %q, %v\nnet => %q, %v", filename, lineno, byteno, bline, berr, line, ok)
    		}
    		if !ok {
    			break
    		}
    		lineno++
    		byteno += len(line) + 1
    	}
    }
    
    func TestDtoi(t *testing.T) {
    	for _, tt := range []struct {
    		in  string
    		out int
    		off int
    		ok  bool
    	}{
    		{"", 0, 0, false},
    		{"0", 0, 1, true},
    		{"65536", 65536, 5, true},
    		{"123456789", big, 8, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 00:04:48 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top