mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-11 09:53:19 +00:00
Monotone-Parent: 389b194bd166895ce122d73e90c04eb48d06a6a1
Monotone-Revision: fbdbaedef2d0b93dc7ac828e0acfde7baccc8f6b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-04-23T18:39:26
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
|
||||
#import <Foundation/NSObject.h>
|
||||
#import <Foundation/NSString.h>
|
||||
#import <Foundation/NSValue.h>
|
||||
|
||||
@class NSArray;
|
||||
@class NSMutableArray;
|
||||
@@ -66,7 +67,10 @@
|
||||
#define failIf(c) test(!(c))
|
||||
|
||||
#define testEquals(a,b) \
|
||||
testWithMessage((((a) == (b)) || ([(a) isEqual: (b)])), \
|
||||
testWithMessage((((a) == (b)) || ([(a) isEqual: (b)]) \
|
||||
|| ([(a) isKindOfClass: [NSNumber class]] \
|
||||
&& [(b) isKindOfClass: [NSNumber class]] \
|
||||
&& [(NSNumber *) (a) isEqualToNumber: (NSNumber *) (b)])), \
|
||||
([NSString stringWithFormat: @"objects '%@' and '%@' differs", (a), (b)]))
|
||||
|
||||
#define testEqualsWithMessage(a,b,m) \
|
||||
|
||||
Reference in New Issue
Block a user