summaryrefslogtreecommitdiffstats
path: root/common/hugo/version_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'common/hugo/version_test.go')
-rw-r--r--common/hugo/version_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/hugo/version_test.go b/common/hugo/version_test.go
index 08059189e..e2aeeabbf 100644
--- a/common/hugo/version_test.go
+++ b/common/hugo/version_test.go
@@ -77,3 +77,9 @@ func TestParseHugoVersion(t *testing.T) {
require.Equal(t, "0.25-DEV", MustParseVersion("0.25-DEV").String())
}
+
+func TestGoMinorVersion(t *testing.T) {
+ assert := require.New(t)
+ assert.Equal(12, goMinorVersion("go1.12.5"))
+ assert.True(GoMinorVersion() >= 11)
+}