summaryrefslogtreecommitdiff
path: root/cmd/rr/utils/utils_test.go
blob: f67b2a109a4b2485469b293945de6c29e514bbd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package utils

import (
	"testing"
	"github.com/magiconair/properties/assert"
)

func TestUtils(t *testing.T) {
	assert.Equal(t, int64(1024), ParseSize("1K"))
	assert.Equal(t, int64(1024*1024), ParseSize("1M"))
	assert.Equal(t, int64(2*1024*1024*1024), ParseSize("2G"))
}