nswrap/ast/objc_interface_test.go
2019-05-31 10:21:04 -04:00

29 lines
490 B
Go

package ast
import (
"testing"
)
func TestObjCInterface(t *testing.T) {
runNodeTest(t,
Parse(`ObjCInterface 0x7f84d10dc1d0 'NSObject'`),
&ObjCInterface{
Addr: 0x7f84d10dc1d0,
Name: `NSObject`,
Super: false,
ChildNodes: []Node{},
},
1,
)
runNodeTest(t,
Parse(`super ObjCInterface 0x7f84d10dc1d0 'NSObject'`),
&ObjCInterface{
Addr: 0x7f84d10dc1d0,
Name: `NSObject`,
Super: true,
ChildNodes: []Node{},
},
2,
)
}