mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-23 06:50:25 +08:00
修复待升级节点版本号对比错误
This commit is contained in:
31
internal/utils/version_test.go
Normal file
31
internal/utils/version_test.go
Normal file
@@ -0,0 +1,31 @@
|
||||
package utils
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestNodeStatus_ComputerBuildVersionCode(t *testing.T) {
|
||||
{
|
||||
t.Log("", VersionToLong(""))
|
||||
}
|
||||
|
||||
{
|
||||
t.Log("0.0.6", VersionToLong("0.0.6"))
|
||||
}
|
||||
|
||||
{
|
||||
t.Log("0.0.6.1", VersionToLong("0.0.6.1"))
|
||||
}
|
||||
|
||||
{
|
||||
t.Log("0.0.7", VersionToLong("0.0.7"))
|
||||
}
|
||||
|
||||
{
|
||||
t.Log("0.7", VersionToLong("0.7"))
|
||||
}
|
||||
{
|
||||
t.Log("7", VersionToLong("7"))
|
||||
}
|
||||
{
|
||||
t.Log("7.0.1", VersionToLong("7.0.1"))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user