aboutsummaryrefslogtreecommitdiffhomepage
path: root/bufferpool
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-08-10 21:05:17 +0200
committerBjørn Erik Pedersen <[email protected]>2019-08-12 13:26:32 +0200
commit9e571827055dedb46b78c5db3d17d6913f14870b (patch)
treef5f0108afe0c9385ff6dc27664943d9f719f57ad /bufferpool
parent6027ee11082d0b9d72de1d4d1980a702be294ad2 (diff)
downloadhugo-9e571827055dedb46b78c5db3d17d6913f14870b.tar.gz
hugo-9e571827055dedb46b78c5db3d17d6913f14870b.zip
tests: Convert from testify to quicktest
Diffstat (limited to 'bufferpool')
-rw-r--r--bufferpool/bufpool_test.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/bufferpool/bufpool_test.go b/bufferpool/bufpool_test.go
index cfa247f62..023724b97 100644
--- a/bufferpool/bufpool_test.go
+++ b/bufferpool/bufpool_test.go
@@ -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)
}