...
|
...
|
@@ -43,6 +43,14 @@ func TestValidVersion(t *testing.T) { |
|
|
{In: "1.8.0", Compare: "0.8.0", Out: true},
|
|
|
{In: "0.99.0", Compare: "0.8.0", Out: true},
|
|
|
{In: "01.0.0", Compare: "0.8.0", Out: true},
|
|
|
{In: "1.4.1", Compare: "1.3.0", Out: true},
|
|
|
{In: "1.3.0", Compare: "1.3.0", Out: true},
|
|
|
{In: "1.3.1", Compare: "1.3.0", Out: true},
|
|
|
{In: "1.2.1", Compare: "1.3.0", Out: false},
|
|
|
{In: "1.1.0", Compare: "1.3.0", Out: false},
|
|
|
{In: "1.1", Compare: "1.3.0", Out: false},
|
|
|
{In: "0.9.99", Compare: "1.3.0", Out: false},
|
|
|
{In: "0.0.1", Compare: "1.3.0", Out: false},
|
|
|
}
|
|
|
for i := range inputs {
|
|
|
input := inputs[i]
|
...
|
...
|
|