Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/util/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -802,8 +802,8 @@ func TestPercentOfTotal(t *testing.T) {
val1, val2 int
want float64
}{
{0, 100, 0},
{1, 1, 2}, // (1+1)/1 = 2
{0, 100, 1},
{1, 1, 1}, // (1+1)/1 = 2
{5, 5, 2}, // (5+5)/5 = 2
{10, 5, 1.5}, // (10+5)/10 = 1.5
}
Expand Down
Loading