Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NumError (0.11 sec)

  1. src/math/big/int_test.go

    		var x Int
    		_, ok := x.SetString(s, 0)
    		if !ok {
    			t.Errorf("SetString(%s, 0) failed", s)
    			continue
    		}
    
    		want, err := strconv.ParseInt(s, 0, 64)
    		if err != nil {
    			if err.(*strconv.NumError).Err == strconv.ErrRange {
    				if x.IsInt64() {
    					t.Errorf("IsInt64(%s) succeeded unexpectedly", s)
    				}
    			} else {
    				t.Errorf("ParseInt(%s) failed", s)
    			}
    			continue
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
Back to top