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

23 lines
394 B
Go

package ast
import (
"testing"
)
func TestDeclStmt(t *testing.T) {
nodes := map[string]testNode{
`0x7fb791846e80 <line:11:4, col:31>`:
testNode{&DeclStmt{
Addr: 0x7fb791846e80,
Pos: NewPositionFromString("line:11:4, col:31"),
ChildNodes: []Node{},
},
0x7fb791846e80,
NewPositionFromString("line:11:4, col:31"),
[]Node{},
},
}
runNodeTests(t, nodes)
}