mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-10 19:54:08 +02:00
tests: Convert from testify to quicktest
This commit is contained in:
@@ -16,14 +16,14 @@ package pageparser
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
qt "github.com/frankban/quicktest"
|
||||
)
|
||||
|
||||
func TestMinIndex(t *testing.T) {
|
||||
assert := require.New(t)
|
||||
assert.Equal(1, minIndex(4, 1, 2, 3))
|
||||
assert.Equal(0, minIndex(4, 0, -2, 2, 5))
|
||||
assert.Equal(-1, minIndex())
|
||||
assert.Equal(-1, minIndex(-2, -3))
|
||||
c := qt.New(t)
|
||||
c.Assert(minIndex(4, 1, 2, 3), qt.Equals, 1)
|
||||
c.Assert(minIndex(4, 0, -2, 2, 5), qt.Equals, 0)
|
||||
c.Assert(minIndex(), qt.Equals, -1)
|
||||
c.Assert(minIndex(-2, -3), qt.Equals, -1)
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user