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

25 lines
436 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)
}