5
// Created by John M McIntosh on 9/25/08.
6
/* Some of this code was funded via a grant from the European Smalltalk User Group (ESUG)
7
Copyright (c) 2008 Corporate Smalltalk Consulting Ltd. All rights reserved.
9
Permission is hereby granted, free of charge, to any person
10
obtaining a copy of this software and associated documentation
11
files (the "Software"), to deal in the Software without
12
restriction, including without limitation the rights to use,
13
copy, modify, merge, publish, distribute, sublicense, and/or sell
14
copies of the Software, and to permit persons to whom the
15
Software is furnished to do so, subject to the following
18
The above copyright notice and this permission notice shall be
19
included in all copies or substantial portions of the Software.
21
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
23
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28
OTHER DEALINGS IN THE SOFTWARE.
30
The end-user documentation included with the redistribution, if any, must include the following acknowledgment:
31
"This product includes software developed by Corporate Smalltalk Consulting Ltd (http://www.smalltalkconsulting.com)
32
and its contributors", in the same place and form as other third-party acknowledgments.
33
Alternately, this acknowledgment may appear in the software itself, in the same form and location as other
34
such third-party acknowledgments.
38
#import "squeakSUnitTester.h"
41
@implementation squeakSUnitTester
48
- (short) test0short {
54
- (long long) test0longlong {
55
return 0xFFFFFFFFFFFFFFFFLL;
57
- (unsigned char) test0unsignedchar{
60
- (unsigned int) test0unsignedint{
63
- (unsigned short) test0unsignedshort {
66
- (unsigned long) test0unsignedlong{
69
- (unsigned long long) test0unsignedlonglong {
70
return 0xFFFFFFFFFFFFFFFFLL;
72
- (float) test0float {
75
- (double) test0double {
80
- (char *) test0charpointer {
81
static char* squeak = "squeak";
84
- (squeakSUnitTester *) test0object {
85
return [squeakSUnitTester new];
87
- (Class) test0class {
88
return [squeakSUnitTester class];
90
- (SEL) test0methodselector {
92
selector = NSSelectorFromString(
93
@"initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:");
96
- (CGRect) test0CGRect {
100
foo.size.width = 3.0;
101
foo.size.height = 4.0;
105
- (char) test0char: (char *)ignore {
108
- (int) test0int: (char *)ignore {
111
- (short) test0short: (char *)ignore {
114
- (long) test0long: (char *)ignore {
117
- (long long) test0longlong: (char *)ignore {
118
return 0xFFFFFFFFFFFFFFFFLL;
120
- (unsigned char) test0unsignedchar: (char *)ignore{
123
- (unsigned int) test0unsignedint: (char *)ignore{
126
- (unsigned short) test0unsignedshort: (char *)ignore {
129
- (unsigned long) test0unsignedlong: (char *)ignore{
132
- (unsigned long long) test0unsignedlonglong: (char *)ignore {
133
return 0xFFFFFFFFFFFFFFFFLL;
135
- (float) test0float: (char *)ignore {
138
- (double) test0double: (char *)ignore {
141
- (void) test0void: (char *)ignore {
143
- (char *) test0charpointer: (char *)ignore {
144
static char* squeak = "squeak";
147
- (squeakSUnitTester *) test0object: (char *)ignore {
148
return [squeakSUnitTester new];
150
- (Class) test0class: (char *)ignore {
151
return [squeakSUnitTester class];
153
- (SEL) test0methodselector: (char *)ignore {
155
selector = NSSelectorFromString(
156
@"initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:");
159
- (CGRect) test0CGRect: (char *)ignore {
163
foo.size.width = 3.0;
164
foo.size.height = 4.0;
168
- (char) test0char: (char *)ignore two: (char *) ignore2 {
171
- (int) test0int: (char *)ignore two: (char *) ignore2 {
174
- (short) test0short: (char *)ignore two: (char *) ignore2{
177
- (long) test0long: (char *)ignore two: (char *) ignore2{
180
- (long long) test0longlong: (char *)ignore two: (char *) ignore2{
181
return 0xFFFFFFFFFFFFFFFFLL;
183
- (unsigned char) test0unsignedchar: (char *)ignore two: (char *) ignore2{
186
- (unsigned int) test0unsignedint: (char *)ignore two: (char *) ignore2{
189
- (unsigned short) test0unsignedshort: (char *)ignore two: (char *) ignore2{
192
- (unsigned long) test0unsignedlong: (char *)ignore two: (char *) ignore2{
195
- (unsigned long long) test0unsignedlonglong: (char *)ignore two: (char *) ignore2{
196
return 0xFFFFFFFFFFFFFFFFLL;
198
- (float) test0float: (char *)ignore two: (char *) ignore2{
201
- (double) test0double: (char *)ignore two: (char *) ignore2{
204
- (void) test0void: (char *)ignore two: (char *) ignore2{
206
- (char *) test0charpointer: (char *)ignore two: (char *) ignore2{
207
static char* squeak = "squeak";
210
- (squeakSUnitTester *) test0object: (char *)ignore two: (char *) ignore2 {
211
return [squeakSUnitTester new];
213
- (Class) test0class: (char *)ignore two: (char *) ignore2 {
214
return [squeakSUnitTester class];
216
- (SEL) test0methodselector: (char *)ignore two: (char *) ignore2 {
218
selector = NSSelectorFromString(
219
@"initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:");
222
- (CGRect) test0CGRect: (char *)ignore two: (char *) ignore2 {
226
foo.size.width = 3.0;
227
foo.size.height = 4.0;
231
- (char) test0char: (char *)ignore two: (char *) ignore2 three: (char *) ignore3 {
234
- (int) test0int: (char *)ignore two: (char *) ignore2 three: (char *) ignore3 {
237
- (short) test0short: (char *)ignore two: (char *) ignore2 three: (char *) ignore3 {
240
- (long) test0long: (char *)ignore two: (char *) ignore2 three: (char *) ignore3 {
243
- (long long) test0longlong: (char *)ignore two: (char *) ignore2 three: (char *) ignore3 {
244
return 0xFFFFFFFFFFFFFFFFLL;
246
- (unsigned char) test0unsignedchar: (char *)ignore two: (char *) ignore2 three: (char *) ignore3 {
249
- (unsigned int) test0unsignedint: (char *)ignore two: (char *) ignore2 three: (char *) ignore3 {
252
- (unsigned short) test0unsignedshort: (char *)ignore two: (char *) ignore2 three: (char *) ignore3 {
255
- (unsigned long) test0unsignedlong: (char *)ignore two: (char *) ignore2 three: (char *) ignore3 {
258
- (unsigned long long) test0unsignedlonglong: (char *)ignore two: (char *) ignore2 three: (char *) ignore3 {
259
return 0xFFFFFFFFFFFFFFFFLL;
261
- (float) test0float: (char *)ignore two: (char *) ignore2 three: (char *) ignore3 {
264
- (double) test0double: (char *)ignore two: (char *) ignore2 three: (char *) ignore3 {
267
- (void) test0void: (char *)ignore two: (char *) ignore2 three: (char *) ignore3 {
269
- (char *) test0charpointer: (char *)ignore two: (char *) ignore2 three: (char *) ignore3 {
270
static char* squeak = "squeak";
273
- (squeakSUnitTester *) test0object: (char *)ignore two: (char *) ignore2 three: (char *) ignore3 {
274
return [squeakSUnitTester new];
276
- (Class) test0class: (char *)ignore two: (char *) ignore2 three: (char *) ignore3 {
277
return [squeakSUnitTester class];
279
- (SEL) test0methodselector: (char *)ignore two: (char *) ignore2 three: (char *) ignore3 {
281
selector = NSSelectorFromString(
282
@"initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:");
285
- (CGRect) test0CGRect: (char *)ignore two: (char *) ignore2 three: (char *) ignore3 {
289
foo.size.width = 3.0;
290
foo.size.height = 4.0;
294
- (char) test1char: (char) ignore {
297
- (int) test1int: (int) ignore {
300
- (short) test1short: (short) ignore {
303
- (long) test1long: (long) ignore {
306
- (long long) test1longlong: (long long) ignore {
309
- (unsigned char) test1unsignedchar: (unsigned char) ignore {
312
- (unsigned int) test1unsignedint: (unsigned int) ignore {
315
- (unsigned short) test1unsignedshort: (unsigned short) ignore {
318
- (unsigned long) test1unsignedlong: (unsigned long) ignore {
321
- (unsigned long long) test1unsignedlonglong: (unsigned long long) ignore {
324
- (float) test1float: (float) ignore {
327
- (double) test1double: (double) ignore {
330
- (char *) test1charpointer: (char *) ignore {
333
- (squeakSUnitTester *) test1object: (squeakSUnitTester *) ignore {
336
- (Class) test1class: (Class) ignore {
339
- (SEL) test1methodselector: (SEL) ignore {
342
- (CGRect) test1CGRect: (CGRect) ignore {
346
- (char) test2char: (squeakSUnitTester *)ignore two: (squeakSUnitTester *) ignore2 {
349
- (int) test2int: (squeakSUnitTester *)ignore two: (squeakSUnitTester *) ignore2 {
352
- (short) test2short: (squeakSUnitTester *)ignore two: (squeakSUnitTester *) ignore2{
355
- (long) test2long: (squeakSUnitTester *)ignore two: (squeakSUnitTester *) ignore2{
358
- (long long) test2longlong: (squeakSUnitTester *)ignore two: (squeakSUnitTester *) ignore2{
359
return 0xFFFFFFFFFFFFFFFFLL;
361
- (unsigned char) test2unsignedchar: (squeakSUnitTester *)ignore two: (squeakSUnitTester *) ignore2{
364
- (unsigned int) test2unsignedint: (squeakSUnitTester *)ignore two: (squeakSUnitTester *) ignore2{
367
- (unsigned short) test2unsignedshort: (squeakSUnitTester *)ignore two: (squeakSUnitTester *) ignore2{
370
- (unsigned long) test2unsignedlong: (squeakSUnitTester *)ignore two: (squeakSUnitTester *) ignore2{
373
- (unsigned long long) test2unsignedlonglong: (squeakSUnitTester *)ignore two: (squeakSUnitTester *) ignore2{
374
return 0xFFFFFFFFFFFFFFFFLL;
376
- (float) test2float: (squeakSUnitTester *)ignore two: (squeakSUnitTester *) ignore2{
379
- (double) test2double: (squeakSUnitTester *)ignore two: (squeakSUnitTester *) ignore2{
382
- (void) test2void: (squeakSUnitTester *)ignore two: (squeakSUnitTester *) ignore2{
384
- (char *) test2charpointer: (squeakSUnitTester *)ignore two: (squeakSUnitTester *) ignore2{
385
static char* squeak = "squeak";
388
- (squeakSUnitTester *) test2object: (squeakSUnitTester *)ignore two: (squeakSUnitTester *) ignore2 {
389
return [squeakSUnitTester new];
391
- (Class) test2class: (squeakSUnitTester *)ignore two: (squeakSUnitTester *) ignore2 {
392
return [squeakSUnitTester class];
394
- (SEL) test2methodselector: (squeakSUnitTester *)ignore two: (squeakSUnitTester *) ignore2 {
396
selector = NSSelectorFromString(
397
@"initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:");
400
- (CGRect) test2CGRect: (squeakSUnitTester *) ignore two: (squeakSUnitTester *) ignore2 {
404
foo.size.width = 3.0;
405
foo.size.height = 4.0;
409
- (oneway void) testQualifier0v {
411
- (oneway void) testQualifier1v: (squeakSUnitTester *)ignore {
413
- (oneway void) testQualifier2v: (squeakSUnitTester *)ignore two: (squeakSUnitTester *)ignore2;{
415
- (oneway void) testQualifier3v: (squeakSUnitTester *)ignore two: (squeakSUnitTester *)ignore2 three: (squeakSUnitTester *)ignore3 {
417
- (squeakSUnitTester *) testQualifier1io: (inout squeakSUnitTester *)ignore {
420
- (squeakSUnitTester *) testQualifier2io: (inout squeakSUnitTester *)ignore two: (inout squeakSUnitTester *)ignore2 {
423
- (squeakSUnitTester *) testQualifier3io: (inout squeakSUnitTester *)ignore two: (inout squeakSUnitTester *)ignore2 three: (inout squeakSUnitTester *)ignore3
427
- (squeakSUnitTester *) testQualifier1i: (in squeakSUnitTester *)ignore {
430
- (squeakSUnitTester *) testQualifier2i: (in squeakSUnitTester *)ignore two: (in squeakSUnitTester *)ignore2 {
433
- (squeakSUnitTester *) testQualifier3i: (in squeakSUnitTester *)ignore two: (in squeakSUnitTester *)ignore2 three: (in squeakSUnitTester *)ignore3
437
- (squeakSUnitTester *) testQualifier1o: (out squeakSUnitTester *)ignore {
440
- (squeakSUnitTester *) testQualifier2o: (out squeakSUnitTester *)ignore two: (out squeakSUnitTester *)ignore2 {
443
- (squeakSUnitTester *) testQualifier3o: (out squeakSUnitTester *)ignore two: (out squeakSUnitTester *)ignore2 three: (out squeakSUnitTester *)ignore3
447
- (squeakSUnitTester *) testQualifier1r: (inout byref squeakSUnitTester *)ignore {
450
- (squeakSUnitTester *) testQualifier2r: (inout byref squeakSUnitTester *)ignore two: (inout byref squeakSUnitTester *)ignore2 {
453
- (squeakSUnitTester *) testQualifier3r: (inout byref squeakSUnitTester *)ignore two: (inout byref squeakSUnitTester *)ignore2 three: (inout byref squeakSUnitTester *)ignore3