Skip to content

Commit 0911e70

Browse files
committed
chore: fix golangci-lint and add test
1 parent 63daa84 commit 0911e70

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
# This information shouldn't be necessary for CI anyway.
2828
GOFLAGS: "-buildvcs=false"
2929
with:
30-
version: v1.62.2
3130
# --concurrency 0 automatically matches Linux container CPU quota.
3231
args: --timeout 10m --concurrency 0
3332

bitset_test.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,23 @@ func TestBitSet_Size(t *testing.T) {
148148
{"large", New(100, 200, 300), 3},
149149
{"range 0 to 64", func() BitSet {
150150
b := New()
151-
b.AddRange(0, 64) // adds 0..63
151+
b.AddRange(0, 64)
152152
return b
153153
}(), 64},
154154
{"range 1 to 64", func() BitSet {
155155
b := New()
156-
b.AddRange(1, 64) // adds 1..63
156+
b.AddRange(1, 64)
157157
return b
158158
}(), 63},
159+
{
160+
name: "range 0 to 576",
161+
bs: func() BitSet {
162+
b := New()
163+
b.AddRange(0, 576)
164+
return b
165+
}(),
166+
expect: 576,
167+
},
159168
}
160169

161170
for _, tt := range tests {

0 commit comments

Comments
 (0)