Skip to content

Commit

Permalink
Unit test minmax
Browse files Browse the repository at this point in the history
  • Loading branch information
zix99 committed Dec 18, 2024
1 parent 021a48b commit aa38416
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/aggregation/table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ func TestTableMultiIncrement(t *testing.T) {
assert.Equal(t, int64(5), max)
}

func TestEmptyTableMinMax(t *testing.T) {
table := NewTable(" ")
min, max := table.ComputeMinMax()
assert.Equal(t, int64(0), min)
assert.Equal(t, int64(0), max)
}

func TestSingleRowTable(t *testing.T) {
table := NewTable(" ")
table.Sample("a")
Expand Down

0 comments on commit aa38416

Please sign in to comment.