remove buffer.WriteBytes

This commit is contained in:
Darien Raymond
2018-11-14 22:55:20 +01:00
parent ff7e5a7cdb
commit 6c7dcc35ab
12 changed files with 89 additions and 32 deletions
+3 -3
View File
@@ -14,10 +14,10 @@ func TestMultiBufferRead(t *testing.T) {
assert := With(t)
b1 := New()
b1.WriteBytes('a', 'b')
b1.WriteString("ab")
b2 := New()
b2.WriteBytes('c', 'd')
b2.WriteString("cd")
mb := NewMultiBufferValue(b1, b2)
bs := make([]byte, 32)
@@ -32,7 +32,7 @@ func TestMultiBufferAppend(t *testing.T) {
var mb MultiBuffer
b := New()
b.WriteBytes('a', 'b')
b.WriteString("ab")
mb.Append(b)
assert(mb.Len(), Equals, int32(2))
}