@@ -67,7 +67,7 @@ void TestAddFunction::testAddFunction()
67
67
{
68
68
const char cppCode[] = " struct B {}; struct A { void a(int); };" ;
69
69
const char xmlCode[] = " \
70
- <typesystem package=\" Foo\" >\
70
+ <typesystem package=' Foo' >\
71
71
<primitive-type name='int' />\
72
72
<primitive-type name='float' />\
73
73
<value-type name='B' />\
@@ -108,7 +108,8 @@ void TestAddFunction::testAddFunctionConstructor()
108
108
{
109
109
const char cppCode[] = " struct A { A() {} };" ;
110
110
const char xmlCode[] = " \
111
- <typesystem package=\" Foo\" >\
111
+ <typesystem package='Foo'>\
112
+ <primitive-type name='int' />\
112
113
<value-type name='A'>\
113
114
<add-function signature='A(int)' />\
114
115
</value-type>\
@@ -130,7 +131,7 @@ void TestAddFunction::testAddFunctionTagDefaultValues()
130
131
{
131
132
const char cppCode[] = " struct A {};" ;
132
133
const char xmlCode[] = " \
133
- <typesystem package=\" Foo\" >\
134
+ <typesystem package=' Foo' >\
134
135
<value-type name='A'>\
135
136
<add-function signature='func()' />\
136
137
</value-type>\
@@ -151,7 +152,7 @@ void TestAddFunction::testAddFunctionCodeSnippets()
151
152
{
152
153
const char cppCode[] = " struct A {};" ;
153
154
const char xmlCode[] = " \
154
- <typesystem package=\" Foo\" >\
155
+ <typesystem package=' Foo' >\
155
156
<value-type name='A'>\
156
157
<add-function signature='func()'>\
157
158
<inject-code class='target' position='end'>Hi!, I am the code.</inject-code>\
@@ -178,7 +179,7 @@ void TestAddFunction::testAddFunctionWithoutParenteses()
178
179
179
180
const char cppCode[] = " struct A {};" ;
180
181
const char xmlCode[] = " \
181
- <typesystem package=\" Foo\" >\
182
+ <typesystem package=' Foo' >\
182
183
<value-type name='A'>\
183
184
<add-function signature='func'>\
184
185
<inject-code class='target' position='end'>Hi!, I am the code.</inject-code>\
@@ -207,7 +208,7 @@ void TestAddFunction::testAddFunctionWithDefaultArgs()
207
208
208
209
const char cppCode[] = " struct A { };" ;
209
210
const char xmlCode[] = " \
210
- <typesystem package=\" Foo\" >\
211
+ <typesystem package=' Foo' >\
211
212
<primitive-type name='int'/> \
212
213
<value-type name='A'>\
213
214
<add-function signature='func(int, int)'>\
@@ -232,7 +233,7 @@ void TestAddFunction::testAddFunctionAtModuleLevel()
232
233
{
233
234
const char cppCode[] = " struct A { };" ;
234
235
const char xmlCode[] = " \
235
- <typesystem package=\" Foo\" >\
236
+ <typesystem package=' Foo' >\
236
237
<primitive-type name='int'/> \
237
238
<value-type name='A'/>\
238
239
<add-function signature='func(int, int)'>\
@@ -270,7 +271,7 @@ void TestAddFunction::testAddFunctionWithVarargs()
270
271
271
272
const char cppCode[] = " struct A {};" ;
272
273
const char xmlCode[] = " \
273
- <typesystem package=\" Foo\" >\
274
+ <typesystem package=' Foo' >\
274
275
<primitive-type name='int'/> \
275
276
<primitive-type name='char'/> \
276
277
<value-type name='A'>\
@@ -293,7 +294,7 @@ void TestAddFunction::testAddStaticFunction()
293
294
{
294
295
const char cppCode[] = " struct A { };" ;
295
296
const char xmlCode[] = " \
296
- <typesystem package=\" Foo\" >\
297
+ <typesystem package=' Foo' >\
297
298
<primitive-type name='int'/> \
298
299
<value-type name='A'>\
299
300
<add-function signature='func(int, int)' static='yes'>\
@@ -314,7 +315,7 @@ void TestAddFunction::testAddGlobalFunction()
314
315
{
315
316
const char cppCode[] = " struct A { };struct B {};" ;
316
317
const char xmlCode[] = " \
317
- <typesystem package=\" Foo\" >\
318
+ <typesystem package=' Foo' >\
318
319
<primitive-type name='int'/> \
319
320
<value-type name='A' />\
320
321
<add-function signature='globalFunc(int, int)' static='yes'>\
@@ -385,9 +386,10 @@ void TestAddFunction::testAddFunctionOnTypedef()
385
386
const char cppCode[] = " template<class T> class Foo { }; typedef Foo<int> FooInt;" ;
386
387
const char xmlCode[] = " \
387
388
<typesystem package='Package'>\
389
+ <custom-type name='PySequence'/>\
388
390
<primitive-type name='int'/>\
389
391
<value-type name='FooInt'>\
390
- <add-function signature='FooInt(PySequence* )'>\
392
+ <add-function signature='FooInt(PySequence)'>\
391
393
<inject-code class='target' position='beginning'>custom_code();</inject-code>\
392
394
</add-function>\
393
395
<add-function signature='method()'>\
0 commit comments