@@ -52,34 +52,18 @@ inModule: module]; \ _fails++; \ } \ } #define R(...) (__VA_ARGS__, 1) -#define PRINT(color, fmt, ...) \ - { \ - OFString *msg = [OFString stringWithFormat: \ - @"[%@] " fmt @"\n", module, __VA_ARGS__]; \ - [self outputString: msg \ - inColor: color]; \ - } @class OFString; -enum { - NO_COLOR, - RED, - GREEN, - YELLOW -}; - @interface TestsAppDelegate: OFObject { int _fails; } -- (void)outputString: (OFString *)str - inColor: (int)color; - (void)outputTesting: (OFString *)test inModule: (OFString *)module; - (void)outputSuccess: (OFString *)test inModule: (OFString *)module; - (void)outputFailure: (OFString *)test