mirror of
https://github.com/nxshock/backuper.git
synced 2024-11-28 00:21:02 +05:00
13 lines
227 B
Go
13 lines
227 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestSizeToApproxHuman(t *testing.T) {
|
|
assert.Equal(t, "1.0 KiB", sizeToApproxHuman(1024))
|
|
assert.Equal(t, "1.1 KiB", sizeToApproxHuman(1126))
|
|
}
|