From fd8e088c91c891ef254313f5c090e95092d6fec4 Mon Sep 17 00:00:00 2001 From: Zhou Hao Date: Tue, 14 Mar 2023 10:42:23 +0800 Subject: [PATCH] test: improve TestMin (#2168) Improve test coverage from 90% to 100%. Signed-off-by: Zhou Hao --- pkg/math/math_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/math/math_test.go b/pkg/math/math_test.go index ad5f67418..7c3213dd3 100644 --- a/pkg/math/math_test.go +++ b/pkg/math/math_test.go @@ -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)))