nswrap/ast/transparent_union_attr_test.go
2019-06-04 00:14:04 -04:00

23 lines
370 B
Go

package ast
import (
"testing"
)
func TestTransparentUnionAttr(t *testing.T) {
nodes := map[string]testNode{
`0x304f700 <col:35>`:
testNode{&TransparentUnionAttr{
Addr: 0x304f700,
Pos: NewPositionFromString("col:35"),
ChildNodes: []Node{},
},
0x304f700,
NewPositionFromString("col:35"),
[]Node{},
},
}
runNodeTests(t, nodes)
}