mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-06 00:56:58 +08:00
4.0初步改造
This commit is contained in:
18
util/buffer_test.go
Normal file
18
util/buffer_test.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package util
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestBuffer(t *testing.T) {
|
||||
t.Run(t.Name(), func(t *testing.T) {
|
||||
var b Buffer
|
||||
t.Log(b == nil)
|
||||
b.Write([]byte{1, 2, 3})
|
||||
if b == nil {
|
||||
t.Fail()
|
||||
} else {
|
||||
t.Logf("b:% x", b)
|
||||
}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user