Change string representation to represent actual binary representation.

This commit is contained in:
Kevin Atkinson
2018-08-25 02:52:23 -04:00
parent d7974d2277
commit 9831436a6f
2 changed files with 22 additions and 32 deletions

View File

@@ -77,7 +77,7 @@ func TestBasicMarshaling(t *testing.T) {
t.Fatal(err)
}
cid := newCid(1, 7, h)
cid := NewCidV1(7, h)
data := cid.Bytes()
@@ -103,7 +103,7 @@ func TestBasesMarshaling(t *testing.T) {
t.Fatal(err)
}
cid := newCid(1, 7, h)
cid := NewCidV1(7, h)
data := cid.Bytes()
@@ -298,7 +298,7 @@ func TestPrefixRoundtrip(t *testing.T) {
func Test16BytesVarint(t *testing.T) {
data := []byte("this is some test content")
hash, _ := mh.Sum(data, mh.SHA2_256, -1)
c := newCid(1, 1<<63, hash)
c := NewCidV1(1<<63, hash)
_ = c.Bytes()
}