Skip to content

Commit

Permalink
test: update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
muktihari committed Oct 7, 2024
1 parent e0f6e54 commit 68bab50
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions decoder/bits_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ func TestMakeBits(t *testing.T) {
},
{
value: proto.String("invalid"),
expected: bits{[32]uint64{31: math.MaxUint64}}, ok: false,
expected: bits{}, ok: false,
},
{
value: proto.Value{},
expected: bits{[32]uint64{31: math.MaxUint64}}, ok: false,
expected: bits{}, ok: false,
},
}

Expand Down Expand Up @@ -185,11 +185,6 @@ func TestBitsPull(t *testing.T) {
{bits: 8, value: 255, ok: true, vbits: bits{store: [32]uint64{math.MaxUint64}}},
},
},
{
name: "single value one pull bits > 32 (64)",
vbits: bits{store: [32]uint64{20}},
pulls: []pull{{bits: 64, value: 0, ok: false, vbits: bits{store: [32]uint64{20}}}},
},
{
name: "single value one pull store is zero",
vbits: bits{store: [32]uint64{0}},
Expand Down

0 comments on commit 68bab50

Please sign in to comment.