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

27 lines
534 B
Go

package ast
import (
"testing"
)
func TestPureAttr(t *testing.T) {
nodes := map[string]Node{
`0x7fe9eb899198 <col:1> Implicit`: &PureAttr{
Addr: 0x7fe9eb899198,
Pos: NewPositionFromString("col:1"),
Implicit: true,
Inherited: false,
ChildNodes: []Node{},
},
`0x7fe8d60992a0 <col:1> Inherited Implicit`: &PureAttr{
Addr: 0x7fe8d60992a0,
Pos: NewPositionFromString("col:1"),
Implicit: true,
Inherited: true,
ChildNodes: []Node{},
},
}
runNodeTests(t, nodes)
}