From c259252dcc2b66f4e3ff65ad5b3a003b104dd3ac Mon Sep 17 00:00:00 2001 From: unclejack Date: Fri, 19 Dec 2014 18:38:12 +0200 Subject: [PATCH] pkg/units: fix size_test.go compilation Signed-off-by: Cristian Staretu --- units/size_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/units/size_test.go b/units/size_test.go index 3e410b0..67c3b81 100644 --- a/units/size_test.go +++ b/units/size_test.go @@ -23,9 +23,9 @@ func TestHumanSize(t *testing.T) { assertEquals(t, "1 MB", HumanSize(1000000)) assertEquals(t, "1.049 MB", HumanSize(1048576)) assertEquals(t, "2 MB", HumanSize(2*MB)) - assertEquals(t, "3.42 GB", HumanSize(int64(float64(3.42*GB)))) - assertEquals(t, "5.372 TB", HumanSize(int64(float64(5.372*TB)))) - assertEquals(t, "2.22 PB", HumanSize(int64(float64(2.22*PB)))) + assertEquals(t, "3.42 GB", HumanSize(float64(3.42*GB))) + assertEquals(t, "5.372 TB", HumanSize(float64(5.372*TB))) + assertEquals(t, "2.22 PB", HumanSize(float64(2.22*PB))) } func TestFromHumanSize(t *testing.T) {