github.com/TeaOSLab/EdgeNode@v1.3.8/internal/utils/version_test.go (about) 1 // Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn . 2 3 package utils_test 4 5 import ( 6 "github.com/TeaOSLab/EdgeNode/internal/utils" 7 "testing" 8 ) 9 10 func TestVersionToLong(t *testing.T) { 11 for _, v := range []string{ 12 "", 13 "a", 14 "1", 15 "1.2", 16 "1.2.1", 17 "1.2.1.4", 18 "1.2.3.4.5", 19 } { 20 t.Log(v, "=>", utils.VersionToLong(v)) 21 } 22 }