25 lines
517 B
Go
25 lines
517 B
Go
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)
|
|
}
|