]> Cypherpunks repositories - gostls13.git/commitdiff
fix codec test bug - uint -> uint8
authorRuss Cox <rsc@golang.org>
Wed, 26 Aug 2009 23:19:59 +0000 (16:19 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 26 Aug 2009 23:19:59 +0000 (16:19 -0700)
R=r
OCL=33913
CL=33913

src/pkg/gob/codec_test.go

index a59621eb96e6f7390d1c9a87151e59e694b900d2..c81bd3609eaf4291f66c9471bea32d530728e842 100644 (file)
@@ -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()) {