Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFillBytes (0.21 sec)

  1. src/math/big/int_test.go

    		1e4, 1e5, 1e6, 1e7,
    	}
    	for _, i := range sizes {
    		j := 2 * i
    		b.Run(fmt.Sprintf("%d/%d", j, i), func(b *testing.B) {
    			benchmarkDiv(b, j, i)
    		})
    	}
    }
    
    func TestFillBytes(t *testing.T) {
    	checkResult := func(t *testing.T, buf []byte, want *Int) {
    		t.Helper()
    		got := new(Int).SetBytes(buf)
    		if got.CmpAbs(want) != 0 {
    			t.Errorf("got 0x%x, want 0x%x: %x", got, want, buf)
    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