nswrap/ast/empty_decl_test.go

23 lines
404 B
Go
Raw Normal View History

2019-04-09 11:52:21 -04:00
package ast
import (
"testing"
)
func TestEmptyDecl(t *testing.T) {
2019-06-04 00:14:04 -04:00
nodes := map[string]testNode{
`0x480bec8 <col:13> col:13`: testNode{&EmptyDecl{
2019-04-09 11:52:21 -04:00
Addr: 0x480bec8,
Pos: NewPositionFromString("col:13"),
Position2: NewPositionFromString("col:13"),
ChildNodes: []Node{},
},
0x480bec8,
NewPositionFromString("col:13"),
[]Node{},
2019-06-04 00:14:04 -04:00
},
2019-04-09 11:52:21 -04:00
}
runNodeTests(t, nodes)
}