Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for 39999999999999999 (0.07 sec)

  1. src/time/format_test.go

    	{"2021-09-29T16:04:33.00123456789Z", 1_234_567},
    	// 12 digits, truncates
    	{"2021-09-29T16:04:33.000123456789Z", 123_456},
    	// 15 digits, truncates
    	{"2021-09-29T16:04:33.9999999999999999Z", 999_999_999},
    }
    
    // Issue 48685 and 54567.
    func TestParseFractionalSecondsLongerThanNineDigits(t *testing.T) {
    	for _, tt := range longFractionalDigitsTests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:58:29 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    		}
    	}
    }
    
    func TestZeroSet(t *testing.T) {
    	type T [16]byte
    	type S struct {
    		a uint64
    		T T
    		b uint64
    	}
    	v := S{
    		a: 0xaaaaaaaaaaaaaaaa,
    		T: T{9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9},
    		b: 0xbbbbbbbbbbbbbbbb,
    	}
    	ValueOf(&v).Elem().Field(1).Set(Zero(TypeOf(T{})))
    	if v != (S{
    		a: 0xaaaaaaaaaaaaaaaa,
    		b: 0xbbbbbbbbbbbbbbbb,
    	}) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top