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

23 lines
398 B
Go

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