2019-11-06 12:03:36 +00:00
|
|
|
package sector
|
|
|
|
|
|
|
|
import (
|
|
|
|
"gotest.tools/assert"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
2019-11-06 12:04:33 +00:00
|
|
|
func TestComputePaddedSize(t *testing.T) {
|
2019-11-06 12:03:36 +00:00
|
|
|
assert.Equal(t, uint64(1040384), computePaddedSize(1000000))
|
|
|
|
assert.Equal(t, uint64(1016), computePaddedSize(548))
|
|
|
|
assert.Equal(t, uint64(4064), computePaddedSize(2048))
|
2019-11-06 12:04:33 +00:00
|
|
|
}
|