diff options
Diffstat (limited to 'UnitTesting')
-rw-r--r-- | UnitTesting/GTMNSObject+UnitTesting.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/UnitTesting/GTMNSObject+UnitTesting.h b/UnitTesting/GTMNSObject+UnitTesting.h index 4f11cc2..3a1d00b 100644 --- a/UnitTesting/GTMNSObject+UnitTesting.h +++ b/UnitTesting/GTMNSObject+UnitTesting.h @@ -69,7 +69,7 @@ do { \ NSString *failString = nil; \ BOOL isGood = GTMIsObjectImageEqualToImageNamed(a1Object, a2String, &failString); \ if (!isGood) { \ - if (description) { \ + if (description != nil) { \ STFail(@"%@: %@", failString, STComposeString(description, ##__VA_ARGS__)); \ } else { \ STFail(@"%@", failString); \ @@ -107,7 +107,7 @@ do { \ NSString *failString = nil; \ BOOL isGood = GTMIsObjectStateEqualToStateNamed(a1Object, a2String, &failString); \ if (!isGood) { \ - if (description) { \ + if (description != nil) { \ STFail(@"%@: %@", failString, STComposeString(description, ##__VA_ARGS__)); \ } else { \ STFail(@"%@", failString); \ |