nswrap/ast/restrict_attr_test.go
2019-04-09 11:52:21 -04:00

19 lines
338 B
Go

package ast
import (
"testing"
)
func TestRestrictAttr(t *testing.T) {
nodes := map[string]Node{
`0x7f980b858305 <line:11:7, line:18:7> foo`: &RestrictAttr{
Addr: 0x7f980b858305,
Pos: NewPositionFromString("line:11:7, line:18:7"),
Name: "foo",
ChildNodes: []Node{},
},
}
runNodeTests(t, nodes)
}