nswrap/ast/sentinel_attr_test.go
2019-06-11 12:38:22 -04:00

24 lines
437 B
Go

package ast
import (
"testing"
)
func TestSentinelAttr(t *testing.T) {
nodes := map[string]testNode{
`0x346df70 <line:3571:19, col:33> 0 0`: testNode{&SentinelAttr{
Addr: 0x346df70,
Pos: NewPositionFromString("line:3571:19, col:33"),
A: 0,
B: 0,
ChildNodes: []Node{},
},
0x346df70,
NewPositionFromString("line:3571:19, col:33"),
[]Node{},
},
}
runNodeTests(t, nodes)
}