Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_uint64 (0.31 sec)

  1. src/math/big/int_test.go

    	"8589934592",
    	"9223372036854775807",
    	"9223372036854775808",
    	"0x08000000000000000",
    
    	// not uint64
    	"0x10000000000000000",
    	"-0x08000000000000000",
    	"-1",
    }
    
    func TestUint64(t *testing.T) {
    	for _, s := range uint64Tests {
    		var x Int
    		_, ok := x.SetString(s, 0)
    		if !ok {
    			t.Errorf("SetString(%s, 0) 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)
  2. src/sync/atomic/atomic_test.go

    		}
    	}
    	if x.before != magic32 || x.after != magic32 {
    		t.Fatalf("wrong magic: %#x _ %#x != %#x _ %#x", x.before, x.after, magic32, magic32)
    	}
    }
    
    func TestOrInt64(t *testing.T) {
    	var x struct {
    		before int64
    		i      int64
    		after  int64
    	}
    	magic64 := int64(magic64)
    	x.before = magic64
    	x.after = magic64
    	var j int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 71.4K bytes
    - Viewed (0)
Back to top