padreader: Some more testcases
This commit is contained in:
parent
7037817659
commit
2c66e20a1e
@ -7,6 +7,12 @@ import (
|
|||||||
|
|
||||||
func TestComputePaddedSize(t *testing.T) {
|
func TestComputePaddedSize(t *testing.T) {
|
||||||
assert.Equal(t, uint64(1040384), PaddedSize(1000000))
|
assert.Equal(t, uint64(1040384), PaddedSize(1000000))
|
||||||
|
|
||||||
assert.Equal(t, uint64(1016), PaddedSize(548))
|
assert.Equal(t, uint64(1016), PaddedSize(548))
|
||||||
|
assert.Equal(t, uint64(1016), PaddedSize(1015))
|
||||||
|
assert.Equal(t, uint64(1016), PaddedSize(1016))
|
||||||
|
assert.Equal(t, uint64(2032), PaddedSize(1017))
|
||||||
|
|
||||||
|
assert.Equal(t, uint64(2032), PaddedSize(1024))
|
||||||
assert.Equal(t, uint64(4064), PaddedSize(2048))
|
assert.Equal(t, uint64(4064), PaddedSize(2048))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user