Skip to content

Commit

Permalink
Merge pull request #9751 from unclejack/revert_9233
Browse files Browse the repository at this point in the history
Fix pkg/units compilation of size_test
  • Loading branch information
tiborvass committed Dec 19, 2014
2 parents f7a449f + e59aad9 commit 1325056
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/units/size_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1325056

Please sign in to comment.