Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSticky (0.09 sec)

  1. src/math/big/nat_test.go

    	{"0x1350", 5, 1},
    
    	{"0x8000000000000000", 63, 0},
    	{"0x8000000000000000", 64, 1},
    
    	{"0x1" + strings.Repeat("0", 100), 400, 0},
    	{"0x1" + strings.Repeat("0", 100), 401, 1},
    }
    
    func TestSticky(t *testing.T) {
    	for i, test := range stickyTests {
    		x := natFromString(test.x)
    		if got := x.sticky(test.i); got != test.want {
    			t.Errorf("#%d: %s.sticky(%d) = %v; want %v", i, test.x, test.i, got, test.want)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 09 15:29:36 UTC 2024
    - 26.2K bytes
    - Viewed (0)
Back to top