Skip to content

Commit

Permalink
Merge pull request #5 from jmank88/test-overflow
Browse files Browse the repository at this point in the history
fix test int overflow
  • Loading branch information
jmank88 authored Oct 27, 2019
2 parents 8b28145 + 3759c5f commit 61b15a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestKeyLen(t *testing.T) {

func TestKey(t *testing.T) {
for _, test := range []struct {
max int
max int64
xs []uint64
bs [][]byte
}{
Expand Down Expand Up @@ -101,7 +101,7 @@ func TestKey(t *testing.T) {
},
},
} {
t.Run(strconv.Itoa(test.max), func(t *testing.T) {
t.Run(strconv.FormatInt(test.max, 10), func(t *testing.T) {
k := make(Key, KeyLen(uint64(test.max)))
for i, x := range test.xs {
k.Put(x)
Expand Down

0 comments on commit 61b15a0

Please sign in to comment.