Commit 9b929572 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 3233fc16
......@@ -82,8 +82,9 @@ func TestZBlk(t *testing.T) {
z0Data, z0Rev, err := z0.loadBlkData(ctx); X(err)
assert.Equal(z0Data, brange32(z0_len), "ZBlk0 data wrong")
assert.Equal(z0Rev, z0_rev, "ZBlk0 rev wrong")
z0DataOK := brange32(z0_len)
assert.Equal(z0Data, z0DataOK, "ZBlk0 data wrong")
assert.Equal(z0Rev, z0_rev, "ZBlk0 rev wrong")
z1Data, z1Rev, err := z1.loadBlkData(ctx); X(err)
z1DataOK := make([]byte, zf_blksize) // zeros
......@@ -112,12 +113,11 @@ func TestZBlk(t *testing.T) {
size, _, err := zf.Size(ctx); X(err)
assert.Equal(size, int64(zf_size), "ZBigFile size wrong")
// XXX check zf.blktab.MaxKey ?
// XXX check zf.LoadBlk()
// XXX PyGetState vs PySetState
}
// TODO verify PyGetState vs PySetState
// brange32 returns bytes with big-endian uint32 seqence filling them.
// returned bytes has len == size.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment