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{
|
2019-06-11 12:38:22 -04:00
|
|
|
`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{},
|
|
|
|
},
|
2019-06-11 12:38:22 -04:00
|
|
|
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)
|
|
|
|
}
|