forked from TrueCloudLab/frostfs-api-go
Fix NaN ObjectSize
This commit is contained in:
parent
959fb58dba
commit
9366b51ace
3 changed files with 9 additions and 4 deletions
|
@ -7,11 +7,16 @@ import (
|
|||
)
|
||||
|
||||
func TestByteSize_String(t *testing.T) {
|
||||
var cases = []struct {
|
||||
cases := []struct {
|
||||
name string
|
||||
expect string
|
||||
actual ByteSize
|
||||
}{
|
||||
{
|
||||
name: "0 bytes",
|
||||
expect: "0",
|
||||
actual: ByteSize(0),
|
||||
},
|
||||
{
|
||||
name: "101 bytes",
|
||||
expect: "101",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue