Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestRatGobDecodeShortBuffer (0.26 sec)

  1. src/math/big/ratmarsh_test.go

    				continue
    			}
    			if rx.Cmp(&tx) != 0 {
    				t.Errorf("XML encoding of %s failed: got %s want %s", &tx, &rx, &tx)
    			}
    		}
    	}
    }
    
    func TestRatGobDecodeShortBuffer(t *testing.T) {
    	for _, tc := range [][]byte{
    		[]byte{0x2},
    		[]byte{0x2, 0x0, 0x0, 0x0, 0xff},
    		[]byte{0x2, 0xff, 0xff, 0xff, 0xff},
    	} {
    		err := NewRat(1, 2).GobDecode(tc)
    		if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 11 20:20:16 UTC 2022
    - 3.3K bytes
    - Viewed (0)
Back to top