24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
\
if (cond) \
[self outputSuccess: test \
inModule: module]; \
else { \
[self outputFailure: test \
inModule: module]; \
fails++; \
} \
}
#define EXPECT_EXCEPTION(test, exception, code) \
{ \
BOOL caught = NO; \
\
[self outputTesting: test \
|
|
|
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
\
if (cond) \
[self outputSuccess: test \
inModule: module]; \
else { \
[self outputFailure: test \
inModule: module]; \
_fails++; \
} \
}
#define EXPECT_EXCEPTION(test, exception, code) \
{ \
BOOL caught = NO; \
\
[self outputTesting: test \
|
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
\
if (caught) \
[self outputSuccess: test \
inModule: module]; \
else { \
[self outputFailure: test \
inModule: module]; \
fails++; \
} \
}
#define R(x) (x, 1)
@class OFString;
@interface TestsAppDelegate: OFObject
{
int fails;
}
- (void)outputString: (OFString*)str
withColor: (int)color;
- (void)outputTesting: (OFString*)test
inModule: (OFString*)module;
- (void)outputSuccess: (OFString*)test
|
|
|
|
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
\
if (caught) \
[self outputSuccess: test \
inModule: module]; \
else { \
[self outputFailure: test \
inModule: module]; \
_fails++; \
} \
}
#define R(x) (x, 1)
@class OFString;
@interface TestsAppDelegate: OFObject
{
int _fails;
}
- (void)outputString: (OFString*)str
withColor: (int)color;
- (void)outputTesting: (OFString*)test
inModule: (OFString*)module;
- (void)outputSuccess: (OFString*)test
|