summaryrefslogtreecommitdiff
path: root/cmd/rr/utils/utils_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/rr/utils/utils_test.go')
-rw-r--r--cmd/rr/utils/utils_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmd/rr/utils/utils_test.go b/cmd/rr/utils/utils_test.go
new file mode 100644
index 00000000..f67b2a10
--- /dev/null
+++ b/cmd/rr/utils/utils_test.go
@@ -0,0 +1,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"))
+}