Add rleplus
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
+2
-4
@@ -3,14 +3,12 @@ package bitvector_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/filecoin-project/go-filecoin/rleplus/internal"
|
||||
tf "github.com/filecoin-project/go-filecoin/testhelpers/testflags"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
bitvector "github.com/filecoin-project/go-lotus/extern/rleplus/internal"
|
||||
)
|
||||
|
||||
func TestBitVector(t *testing.T) {
|
||||
tf.UnitTest(t)
|
||||
|
||||
t.Run("zero value", func(t *testing.T) {
|
||||
var v bitvector.BitVector
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -6,7 +6,7 @@ import (
|
||||
"fmt"
|
||||
"sort"
|
||||
|
||||
"github.com/filecoin-project/go-filecoin/rleplus/internal"
|
||||
bitvector "github.com/filecoin-project/go-lotus/extern/rleplus/internal"
|
||||
)
|
||||
|
||||
// Version is the 2 lowest bits of this constant
|
||||
|
||||
Vendored
+2
-4
@@ -6,14 +6,12 @@ import (
|
||||
"sort"
|
||||
"testing"
|
||||
|
||||
"github.com/filecoin-project/go-filecoin/rleplus"
|
||||
"github.com/filecoin-project/go-filecoin/rleplus/internal"
|
||||
tf "github.com/filecoin-project/go-filecoin/testhelpers/testflags"
|
||||
"github.com/filecoin-project/go-lotus/extern/rleplus"
|
||||
bitvector "github.com/filecoin-project/go-lotus/extern/rleplus/internal"
|
||||
"gotest.tools/assert"
|
||||
)
|
||||
|
||||
func TestRleplus(t *testing.T) {
|
||||
tf.UnitTest(t)
|
||||
|
||||
t.Run("Encode", func(t *testing.T) {
|
||||
// Encode an intset
|
||||
|
||||
Reference in New Issue
Block a user