Skip to content

Commit

Permalink
fix unit test compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
ws4charlie committed Oct 16, 2024
1 parent 4f5b1a1 commit b3426af
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/math/bits/bits_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"

"github.com/stretchr/testify/require"
"github.com/zeta-chain/node/pkg/math"
zetabits "github.com/zeta-chain/node/pkg/math/bits"
)

func TestSetBit(t *testing.T) {
Expand Down Expand Up @@ -37,7 +37,7 @@ func TestSetBit(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
b := tt.initial
math.SetBit(&b, tt.position)
zetabits.SetBit(&b, tt.position)
require.Equal(t, tt.expected, b)
})
}
Expand Down Expand Up @@ -78,7 +78,7 @@ func TestIsBitSet(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
result := math.IsBitSet(tt.b, tt.position)
result := zetabits.IsBitSet(tt.b, tt.position)
require.Equal(t, tt.expected, result)
})
}
Expand Down Expand Up @@ -125,7 +125,7 @@ func TestGetBits(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
result := math.GetBits(tt.b, tt.mask)
result := zetabits.GetBits(tt.b, tt.mask)
require.Equal(t, tt.expected, result)
})
}
Expand Down Expand Up @@ -164,7 +164,7 @@ func TestSetBits(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
result := math.SetBits(tt.b, tt.mask, tt.value)
result := zetabits.SetBits(tt.b, tt.mask, tt.value)
require.Equal(t, tt.expected, result)
})
}
Expand Down

0 comments on commit b3426af

Please sign in to comment.