nswrap/ast/call_expr_test.go

25 lines
517 B
Go
Raw Normal View History

2019-04-09 11:52:21 -04:00
package ast
import (
"testing"
)
func TestCallExpr(t *testing.T) {
nodes := map[string]Node{
`0x7f9bf3033240 <col:11, col:25> 'int'`: &CallExpr{
Addr: 0x7f9bf3033240,
Pos: NewPositionFromString("col:11, col:25"),
Type: "int",
ChildNodes: []Node{},
},
`0x7f9bf3035c20 <line:7:4, col:64> 'int'`: &CallExpr{
Addr: 0x7f9bf3035c20,
Pos: NewPositionFromString("line:7:4, col:64"),
Type: "int",
ChildNodes: []Node{},
},
}
runNodeTests(t, nodes)
}