mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-07 04:47:14 +00:00
Monotone-Parent: 3049bbd9ddfe5886523c3f742888bf850719f4bc
Monotone-Revision: d9a86eb13b216d79e4554381c163dbca408f0d39 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-07-19T20:01:13 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
5a1aad272e
commit
5f6f472b16
5 files changed
+87
-5
No files matched your search
@@ -54,7 +54,7 @@
|
||||
@end
|
||||
|
||||
#define test(c) { \
|
||||
[self test: (c) message: @"assertion failure" \
|
||||
[self test: (c) message: @"assertion failure" \
|
||||
file: __FILE__ line: __LINE__]; \
|
||||
}
|
||||
|
||||
@@ -63,13 +63,13 @@
|
||||
file: __FILE__ line: __LINE__]; \
|
||||
}
|
||||
|
||||
#define failIf(c) test(!c)
|
||||
#define failIf(c) test(!(c))
|
||||
|
||||
#define testEquals(a,b) \
|
||||
testWithMessage(((a == b) || ([a isEqual: b])), \
|
||||
testWithMessage((((a) == (b)) || ([(a) isEqual: (b)])), \
|
||||
([NSString stringWithFormat: @"objects '%@' and '%@' differs", (a), (b)]))
|
||||
|
||||
#define testEqualsWithMessage(a,b,m) \
|
||||
testWithMessage(([a isEqual: b]), (m))
|
||||
testWithMessage(([(a) isEqual: (b)]), (m))
|
||||
|
||||
#endif /* SOGOTEST_H */
|
||||
Reference in new issue
Block a user