hugo/helpers/hugo_test.go
bep 3273fce044 Refactor Hugo version
Put version handling into the helpers package so it can be used by many,
and split version and suffix to make it possible to calculate the next Hugo version.
2015-03-18 12:23:13 +01:00

11 lines
230 B
Go

package helpers
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestHugoVersion(t *testing.T) {
assert.Equal(t, "0.15-DEV", hugoVersion(0.15, "-DEV"))
assert.Equal(t, "0.17", hugoVersionNoSuffix(0.16+0.01))
}