13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#import "OFApplication.h"
#import "OFXMLElementBuilder.h"
#define TEST(test, cond) \
{ \
[self outputTesting: test \
inModule: module]; \
\
if (cond) \
[self outputSuccess: test \
inModule: module]; \
else { \
[self outputFailure: test \
inModule: module]; \
_fails++; \
} \
|
|
|
|
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#import "OFApplication.h"
#import "OFXMLElementBuilder.h"
#define TEST(test, ...) \
{ \
[self outputTesting: test \
inModule: module]; \
\
if (__VA_ARGS__) \
[self outputSuccess: test \
inModule: module]; \
else { \
[self outputFailure: test \
inModule: module]; \
_fails++; \
} \
|
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
inModule: module]; \
else { \
[self outputFailure: test \
inModule: module]; \
_fails++; \
} \
}
#define R(x) (x, 1)
@class OFString;
@interface TestsAppDelegate: OFObject
{
int _fails;
}
|
|
|
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
inModule: module]; \
else { \
[self outputFailure: test \
inModule: module]; \
_fails++; \
} \
}
#define R(...) (__VA_ARGS__, 1)
@class OFString;
@interface TestsAppDelegate: OFObject
{
int _fails;
}
|