From: Russ Cox Date: Wed, 26 Aug 2009 23:19:59 +0000 (-0700) Subject: fix codec test bug - uint -> uint8 X-Git-Tag: weekly.2009-11-06~761 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=26a2642fc39227edfd842b58fc4be08a4e837117;p=gostls13.git fix codec test bug - uint -> uint8 R=r OCL=33913 CL=33913 --- diff --git a/src/pkg/gob/codec_test.go b/src/pkg/gob/codec_test.go index a59621eb96..c81bd3609e 100644 --- a/src/pkg/gob/codec_test.go +++ b/src/pkg/gob/codec_test.go @@ -168,7 +168,7 @@ func TestScalarEncInstructions(t *testing.T) { { b.Reset(); data := struct { a int8 } { 17 }; - instr := &encInstr{ encInt, 6, 0, 0 }; + instr := &encInstr{ encInt8, 6, 0, 0 }; state := newencoderState(b); instr.op(instr, state, unsafe.Pointer(&data)); if !bytes.Equal(signedResult, b.Data()) { @@ -180,7 +180,7 @@ func TestScalarEncInstructions(t *testing.T) { { b.Reset(); data := struct { a uint8 } { 17 }; - instr := &encInstr{ encUint, 6, 0, 0 }; + instr := &encInstr{ encUint8, 6, 0, 0 }; state := newencoderState(b); instr.op(instr, state, unsafe.Pointer(&data)); if !bytes.Equal(unsignedResult, b.Data()) { @@ -255,7 +255,7 @@ func TestScalarEncInstructions(t *testing.T) { { b.Reset(); data := struct { a uint64 } { 17 }; - instr := &encInstr{ encUint, 6, 0, 0 }; + instr := &encInstr{ encUint64, 6, 0, 0 }; state := newencoderState(b); instr.op(instr, state, unsafe.Pointer(&data)); if !bytes.Equal(unsignedResult, b.Data()) {