1.4.5.2
This commit is contained in:
21
EdgeDNS/internal/utils/version_test.go
Normal file
21
EdgeDNS/internal/utils/version_test.go
Normal file
@@ -0,0 +1,21 @@
|
||||
// Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package utils_test
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeDNS/internal/utils"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestVersionToLong(t *testing.T) {
|
||||
for _, v := range []string{
|
||||
"aaa",
|
||||
"1",
|
||||
"1.2",
|
||||
"1.2.3",
|
||||
"1.2.3.4",
|
||||
"1.2.3.4.5",
|
||||
} {
|
||||
t.Log(v, "=>", utils.VersionToLong(v))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user