Permalink
Browse files

Added arrays to the list of CF types recognized for comparison and de…

…scription.
  • Loading branch information...
1 parent 5d6d9de commit 7cc65439b48a969b1cd4daad5fab420764e3191c @robrix committed Jul 11, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 RXAssertions.m
View
@@ -143,8 +143,10 @@ +(void)initialize {
[self registerComparisonFunction: RXAssertionHelperObjectComparison forObjCType: @encode(id)];
[self registerComparisonFunction: RXAssertionHelperObjectComparison forObjCType: @encode(Class)];
CFStringRef string = NULL;
+ CFArrayRef array = NULL;
CFCharacterSetRef characterSet = NULL;
[self registerComparisonFunction: RXAssertionHelperCFTypeRefComparison forObjCType: @encode(__typeof__(string))]; // __typeof__ keeps qualifiers, e.g. const
+ [self registerComparisonFunction: RXAssertionHelperCFTypeRefComparison forObjCType: @encode(__typeof__(array))]; // __typeof__ keeps qualifiers, e.g. const
[self registerComparisonFunction: RXAssertionHelperCFTypeRefComparison forObjCType: @encode(__typeof__(characterSet))]; // __typeof__ keeps qualifiers, e.g. const
[self registerComparisonFunction: RXAssertionHelperNSPointComparison forObjCType: @encode(NSPoint)];
[self registerComparisonFunction: RXAssertionHelperNSPointComparison forObjCType: @encode(CGPoint)];
@@ -164,6 +166,7 @@ +(void)initialize {
[self registerDescriptionFunction: RXAssertionHelperObjectDescription forObjCType: @encode(id)];
[self registerDescriptionFunction: RXAssertionHelperObjectDescription forObjCType: @encode(Class)];
[self registerDescriptionFunction: RXAssertionHelperCFTypeRefDescription forObjCType: @encode(__typeof__(string))]; // __typeof__ keeps qualifiers, e.g. const
+ [self registerDescriptionFunction: RXAssertionHelperCFTypeRefDescription forObjCType: @encode(__typeof__(array))]; // __typeof__ keeps qualifiers, e.g. const
[self registerDescriptionFunction: RXAssertionHelperCFTypeRefDescription forObjCType: @encode(__typeof__(characterSet))]; // __typeof__ keeps qualifiers, e.g. const
[self registerDescriptionFunction: RXAssertionHelperNSPointDescription forObjCType: @encode(NSPoint)];
[self registerDescriptionFunction: RXAssertionHelperNSPointDescription forObjCType: @encode(CGPoint)];

0 comments on commit 7cc6543

Please sign in to comment.