mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-30 04:53:22 -05:00
12 lines
230 B
Go
12 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))
|
||
|
}
|