notation/debug_test.go

22 lines
327 B
Go
Raw Normal View History

package notation
import (
"fmt"
"reflect"
"testing"
)
func TestDebugNode(t *testing.T) {
const expect = `"foobarbaz"`
o := "foobarbaz"
n := reflectValue(none, reflect.ValueOf(o))
s := fmt.Sprint(n)
if s != expect {
t.Fatalf(
"failed to get debug string of node, got: %s, expected: %s",
s,
expect,
)
}
}