Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestGobEncodingNilIntInSlice (0.29 sec)

  1. src/math/big/intmarsh_test.go

    			}
    		}
    	}
    }
    
    // Sending a nil Int pointer (inside a slice) on a round trip through gob should yield a zero.
    // TODO: top-level nils.
    func TestGobEncodingNilIntInSlice(t *testing.T) {
    	buf := new(bytes.Buffer)
    	enc := gob.NewEncoder(buf)
    	dec := gob.NewDecoder(buf)
    
    	var in = make([]*Int, 1)
    	err := enc.Encode(&in)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 07 23:27:14 UTC 2022
    - 3.1K bytes
    - Viewed (0)
Back to top