nswrap/ast/objc_type_param_test.go

31 lines
526 B
Go

package ast
import (
"testing"
)
func TestObjCTypeParam(t *testing.T) {
nodes := map[string]testNode{
`0x7f9bf3033240 'int'`: testNode{&ObjCTypeParam{
Addr: 0x7f9bf3033240,
Type: "int",
ChildNodes: []Node{},
},
0x7f9bf3033240,
Position{},
[]Node{},
},
`0x7f9bf3035c20 'unsigned int'`: testNode{&ObjCTypeParam{
Addr: 0x7f9bf3035c20,
Type: "unsigned int",
ChildNodes: []Node{},
},
0x7f9bf3035c20,
Position{},
[]Node{},
},
}
runNodeTests(t, nodes)
}