nswrap/ast/stmt_expr_test.go
2019-06-11 12:38:22 -04:00

23 lines
414 B
Go

package ast
import (
"testing"
)
func TestStmtExpr(t *testing.T) {
nodes := map[string]testNode{
`0x7ff4f9100d28 <col:11, col:18> 'int'`: testNode{&StmtExpr{
Addr: 0x7ff4f9100d28,
Pos: NewPositionFromString("col:11, col:18"),
Type: "int",
ChildNodes: []Node{},
},
0x7ff4f9100d28,
NewPositionFromString("col:11, col:18"),
[]Node{},
},
}
runNodeTests(t, nodes)
}