"github.com/spf13/hugo/source"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
+ "html/template"
"path/filepath"
"testing"
)
assert.Equal(t, 5, paginator.TotalPages())
first := paginatorPages[0]
- assert.Equal(t, "page/1/", first.URL())
+ assert.Equal(t, template.HTML("page/1/"), first.URL())
assert.Equal(t, first.URL(), first.Url())
assert.Equal(t, first, first.First())
assert.True(t, first.HasNext())
assert.Equal(t, paginatorPages[1], third.Prev())
last := paginatorPages[4]
- assert.Equal(t, "page/5/", last.URL())
+ assert.Equal(t, template.HTML("page/5/"), last.URL())
assert.Equal(t, last, last.Last())
assert.False(t, last.HasNext())
assert.Nil(t, last.Next())
scratch.Add("int1", 20)
scratch.Add("int2", 20)
- assert.Equal(t, 30, scratch.Get("int1"))
+ assert.Equal(t, int64(30), scratch.Get("int1"))
assert.Equal(t, 20, scratch.Get("int2"))
scratch.Add("float1", float64(10.5))