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

22 lines
352 B
Go

package ast
import (
"testing"
)
func TestTranslationUnitDecl(t *testing.T) {
nodes := map[string]testNode{
`0x7fe78a815ed0 <<invalid sloc>> <invalid sloc>`:
testNode{&TranslationUnitDecl{
Addr: 0x7fe78a815ed0,
ChildNodes: []Node{},
},
0x7fe78a815ed0,
NewPositionFromString(""),
[]Node{},
},
}
runNodeTests(t, nodes)
}