From d7e9ef388e58c6ba9b3fa029618e4acc6bdefe83 Mon Sep 17 00:00:00 2001 From: Daniel Milde Date: Mon, 19 Sep 2022 22:42:09 +0200 Subject: [PATCH] test: export formatting --- report/export_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/report/export_test.go b/report/export_test.go index 3d141beb1..f35778a9c 100644 --- a/report/export_test.go +++ b/report/export_test.go @@ -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) { @@ -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") }