treerack/char_test.go
2017-11-05 03:28:36 +01:00

18 lines
320 B
Go

package treerack
import (
"bufio"
"bytes"
"testing"
)
func TestCharBuildNoop(t *testing.T) {
c := newChar("foo", false, nil, nil)
c.init(newRegistry())
b := c.builder()
ctx := newContext(bufio.NewReader(bytes.NewBuffer(nil)))
if n, ok := b.build(ctx); len(n) != 0 || ok {
t.Error("char build not noop")
}
}