common/hugo: Fix version logic

[ci skip]
This commit is contained in:
hugoreleaser
2022-05-16 08:50:17 +00:00
committed by Bjørn Erik Pedersen
parent 1de333e7a3
commit 7bc3401eb5
7 changed files with 116 additions and 133 deletions

View File

@@ -33,9 +33,9 @@ func TestConfigHugoVersionIsValid(t *testing.T) {
{HugoVersion{Min: "0.33.0"}, true},
{HugoVersion{Min: "0.56.0-DEV"}, true},
{HugoVersion{Min: "0.33.0", Max: "0.55.0"}, false},
{HugoVersion{Min: "0.33.0", Max: "0.99.0"}, true},
{HugoVersion{Min: "0.33.0", Max: "0.199.0"}, true},
} {
c.Assert(test.in.IsValid(), qt.Equals, test.expect)
c.Assert(test.in.IsValid(), qt.Equals, test.expect, qt.Commentf("%#v", test.in))
}
}