any-sync/node/acl/util_test.go
2022-12-26 18:01:18 +01:00

17 lines
351 B
Go

package acl
import (
"github.com/anytypeio/go-anytype-infrastructure-experiments/common/util/cidutil"
"github.com/stretchr/testify/assert"
"testing"
)
func TestCIDLen(t *testing.T) {
s, _ := cidutil.NewCidFromBytes([]byte("some data"))
t.Log(s, len(s))
b, _ := cidToByte(s)
t.Log(b, len(b))
s2, _ := cidToString(b)
assert.Equal(t, s, s2)
}