mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 21:51:02 +03:00
tests: Convert from testify to quicktest
This commit is contained in:
parent
6027ee1108
commit
9e57182705
195 changed files with 3919 additions and 3693 deletions
|
@ -14,14 +14,18 @@
|
|||
package bufferpool
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
|
||||
qt "github.com/frankban/quicktest"
|
||||
)
|
||||
|
||||
func TestBufferPool(t *testing.T) {
|
||||
c := qt.New(t)
|
||||
|
||||
buff := GetBuffer()
|
||||
buff.WriteString("do be do be do")
|
||||
assert.Equal(t, "do be do be do", buff.String())
|
||||
c.Assert(buff.String(), qt.Equals, "do be do be do")
|
||||
PutBuffer(buff)
|
||||
assert.Equal(t, 0, buff.Len())
|
||||
|
||||
c.Assert(buff.Len(), qt.Equals, 0)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue