Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestGobEncodingNilRatInSlice (0.28 sec)

  1. src/math/big/ratmarsh_test.go

    			t.Errorf("transmission of %s failed: got %s want %s", &tx, &rx, &tx)
    		}
    	}
    }
    
    // Sending a nil Rat pointer (inside a slice) on a round trip through gob should yield a zero.
    // TODO: top-level nils.
    func TestGobEncodingNilRatInSlice(t *testing.T) {
    	buf := new(bytes.Buffer)
    	enc := gob.NewEncoder(buf)
    	dec := gob.NewDecoder(buf)
    
    	var in = make([]*Rat, 1)
    	err := enc.Encode(&in)
    	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