mirror of
https://github.com/Monibuca/engine.git
synced 2025-09-28 05:12:09 +08:00
19 lines
238 B
Go
19 lines
238 B
Go
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)
|
|
}
|
|
})
|
|
}
|