Skip to content

Commit

Permalink
test: export formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dundee committed Sep 19, 2022
1 parent 70426a6 commit d7e9ef3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions report/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func TestFormatSize(t *testing.T) {
assert.Contains(t, ui.formatSize(1<<40+1), "TiB")
assert.Contains(t, ui.formatSize(1<<50+1), "PiB")
assert.Contains(t, ui.formatSize(1<<60+1), "EiB")
assert.Contains(t, ui.formatSize(-1<<10-1), "KiB")
}

func TestFormatSizeDec(t *testing.T) {
Expand All @@ -128,4 +129,5 @@ func TestFormatSizeDec(t *testing.T) {
assert.Contains(t, ui.formatSize(1<<40+1), "TB")
assert.Contains(t, ui.formatSize(1<<50+1), "PB")
assert.Contains(t, ui.formatSize(1<<60+1), "EB")
assert.Contains(t, ui.formatSize(-1<<10-1), "kB")
}

0 comments on commit d7e9ef3

Please sign in to comment.