nswrap/ast/stmt_expr_test.go

23 lines
414 B
Go
Raw Normal View History

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