24 lines
437 B
Go
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)
|
|
}
|