@@ -15,16 +15,16 @@ */ #import "OFApplication.h" #import "OFXMLElementBuilder.h" -#define TEST(test, cond) \ +#define TEST(test, ...) \ { \ [self outputTesting: test \ inModule: module]; \ \ - if (cond) \ + if (__VA_ARGS__) \ [self outputSuccess: test \ inModule: module]; \ else { \ [self outputFailure: test \ inModule: module]; \ @@ -51,11 +51,11 @@ [self outputFailure: test \ inModule: module]; \ _fails++; \ } \ } -#define R(x) (x, 1) +#define R(...) (__VA_ARGS__, 1) @class OFString; @interface TestsAppDelegate: OFObject {