test: improve TestMin (#2168)

Improve test coverage from 90% to 100%.

Signed-off-by: Zhou Hao <zhouhao@fujitsu.com>
This commit is contained in:
Zhou Hao 2023-03-14 10:42:23 +08:00 committed by Gaius
parent 9b45f78bc1
commit fd8e088c91
No known key found for this signature in database
GPG Key ID: 8B4E5D1290FA2FFB
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ func TestMin(t *testing.T) {
assert := assert.New(t)
assert.Equal(1, Min(1))
assert.Equal(1, Min(1, 2, 3))
assert.Equal(1, Min(3, 2, 1))
assert.Equal(int8(1), Min(int8(1), int8(2), int8(3)))
assert.Equal(int16(1), Min(int16(1), int16(2), int16(3)))
assert.Equal(int32(1), Min(int32(1), int32(2), int32(3)))