mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-07 02:20:24 +08:00
新版IP库管理阶段性提交(未完成)
This commit is contained in:
20
internal/utils/numberutils/utils_test.go
Normal file
20
internal/utils/numberutils/utils_test.go
Normal file
@@ -0,0 +1,20 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package numberutils_test
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeAPI/internal/utils/numberutils"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestMax(t *testing.T) {
|
||||
t.Log(numberutils.Max[int](1, 2, 3))
|
||||
t.Log(numberutils.Max[int32](1, 2, 3))
|
||||
t.Log(numberutils.Max[float32](1.2, 2.3, 3.4))
|
||||
}
|
||||
|
||||
func TestMin(t *testing.T) {
|
||||
t.Log(numberutils.Min[int](1, 2, 3))
|
||||
t.Log(numberutils.Min[int32](1, 2, 3))
|
||||
t.Log(numberutils.Min[float32](1.2, 2.3, 3.4))
|
||||
}
|
||||
Reference in New Issue
Block a user