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