Permalink
Browse files

Implemented unit testing target and basic class parsing tests.

  • Loading branch information...
1 parent 9b84f99 commit 84598f71a9a77ac9450be1b0ca9dc42fbb665cbe @tomaz committed Jul 26, 2010
Showing with 6,299 additions and 9 deletions.
  1. +20 −0 AppledocTests_prefix.pch
  2. +2 −2 Application/GBAppledocApplication.h
  3. +1 −0 Application/GBAppledocApplication.m
  4. +2 −2 Application/{GBApplicationSettingsProvider.h → GBApplicationSettingsProviding.h}
  5. +1 −0 Libraries/OCHamcrest.framework/Headers
  6. +1 −0 Libraries/OCHamcrest.framework/OCHamcrest
  7. +1 −0 Libraries/OCHamcrest.framework/Resources
  8. +52 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCAllOf.h
  9. +52 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCAnyOf.h
  10. +30 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCBaseDescription.h
  11. +21 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCBaseMatcher.h
  12. +87 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCBoxNumber.h
  13. +56 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCDescribedAs.h
  14. +46 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCDescription.h
  15. +48 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCHasDescription.h
  16. +37 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCInvocationMatcher.h
  17. +66 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIs.h
  18. +61 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsAnything.h
  19. +48 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsCloseTo.h
  20. +51 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsCollectionContaining.h
  21. +60 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsCollectionOnlyContaining.h
  22. +43 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsDictionaryContaining.h
  23. +41 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsDictionaryContainingKey.h
  24. +41 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsDictionaryContainingValue.h
  25. +47 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsEqual.h
  26. +44 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsEqualIgnoringCase.h
  27. +45 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsEqualIgnoringWhiteSpace.h
  28. +185 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsEqualToNumber.h
  29. +41 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsIn.h
  30. +47 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsInstanceOf.h
  31. +55 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsNil.h
  32. +56 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsNot.h
  33. +47 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsSame.h
  34. +52 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCMatcher.h
  35. +36 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCMatcherAssert.h
  36. +248 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCNumberAssert.h
  37. +80 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCOrderingComparison.h
  38. +28 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCRequireNonNilString.h
  39. +29 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCSelfDescribing.h
  40. +42 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCStringContains.h
  41. +40 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCStringDescription.h
  42. +42 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCStringEndsWith.h
  43. +42 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCStringStartsWith.h
  44. +19 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCSubstringMatcher.h
  45. +24 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/HCWrapInMatcher.h
  46. +45 −0 Libraries/OCHamcrest.framework/Versions/A/Headers/OCHamcrest.h
  47. BIN Libraries/OCHamcrest.framework/Versions/A/OCHamcrest
  48. +22 −0 Libraries/OCHamcrest.framework/Versions/A/Resources/Info.plist
  49. BIN Libraries/OCHamcrest.framework/Versions/A/Resources/InfoPlist.strings
  50. +1 −0 Libraries/OCHamcrest.framework/Versions/Current
  51. +1 −0 Libraries/OCMock.framework/Headers
  52. +1 −0 Libraries/OCMock.framework/OCMock
  53. +1 −0 Libraries/OCMock.framework/Resources
  54. +1 −0 Libraries/OCMock.framework/Versions/A/A
  55. +1 −0 Libraries/OCMock.framework/Versions/A/Headers/Headers
  56. +15 −0 Libraries/OCMock.framework/Versions/A/Headers/NSNotificationCenter+OCMAdditions.h
  57. +26 −0 Libraries/OCMock.framework/Versions/A/Headers/OCMArg.h
  58. +48 −0 Libraries/OCMock.framework/Versions/A/Headers/OCMConstraint.h
  59. +10 −0 Libraries/OCMock.framework/Versions/A/Headers/OCMock.h
  60. +32 −0 Libraries/OCMock.framework/Versions/A/Headers/OCMockObject.h
  61. +27 −0 Libraries/OCMock.framework/Versions/A/Headers/OCMockRecorder.h
  62. BIN Libraries/OCMock.framework/Versions/A/OCMock
  63. +26 −0 Libraries/OCMock.framework/Versions/A/Resources/Info.plist
  64. +15 −0 Libraries/OCMock.framework/Versions/A/Resources/License.txt
  65. +1 −0 Libraries/OCMock.framework/Versions/A/Resources/Resources
  66. +1 −0 Libraries/OCMock.framework/Versions/Current
  67. +33 −0 Libraries/ParseKit/PKAlternation.h
  68. +31 −0 Libraries/ParseKit/PKAny.h
  69. +86 −0 Libraries/ParseKit/PKAssembly.h
  70. +26 −0 Libraries/ParseKit/PKCaseInsensitiveLiteral.h
  71. +31 −0 Libraries/ParseKit/PKChar.h
  72. +26 −0 Libraries/ParseKit/PKCharacterAssembly.h
  73. +44 −0 Libraries/ParseKit/PKCollectionParser.h
  74. +31 −0 Libraries/ParseKit/PKComment.h
  75. +77 −0 Libraries/ParseKit/PKCommentState.h
  76. +58 −0 Libraries/ParseKit/PKDelimitState.h
  77. +36 −0 Libraries/ParseKit/PKDelimitedString.h
  78. +63 −0 Libraries/ParseKit/PKDifference.h
  79. +31 −0 Libraries/ParseKit/PKDigit.h
  80. +22 −0 Libraries/ParseKit/PKEmailState.h
  81. +32 −0 Libraries/ParseKit/PKEmpty.h
  82. +41 −0 Libraries/ParseKit/PKIntersection.h
  83. +31 −0 Libraries/ParseKit/PKLetter.h
  84. +34 −0 Libraries/ParseKit/PKLiteral.h
  85. +22 −0 Libraries/ParseKit/PKLowercaseWord.h
  86. +24 −0 Libraries/ParseKit/PKMultiLineCommentState.h
  87. +52 −0 Libraries/ParseKit/PKNegation.h
  88. +31 −0 Libraries/ParseKit/PKNumber.h
  89. +71 −0 Libraries/ParseKit/PKNumberState.h
  90. +173 −0 Libraries/ParseKit/PKParser.h
  91. +48 −0 Libraries/ParseKit/PKParserFactory.h
  92. +39 −0 Libraries/ParseKit/PKPattern.h
  93. +46 −0 Libraries/ParseKit/PKQuoteState.h
  94. +31 −0 Libraries/ParseKit/PKQuotedString.h
  95. +66 −0 Libraries/ParseKit/PKReader.h
  96. +46 −0 Libraries/ParseKit/PKRepetition.h
  97. +33 −0 Libraries/ParseKit/PKSequence.h
  98. +23 −0 Libraries/ParseKit/PKSingleLineCommentState.h
  99. +40 −0 Libraries/ParseKit/PKSpecificChar.h
  100. +40 −0 Libraries/ParseKit/PKSymbol.h
  101. +44 −0 Libraries/ParseKit/PKSymbolNode.h
  102. +48 −0 Libraries/ParseKit/PKSymbolRootNode.h
  103. +44 −0 Libraries/ParseKit/PKSymbolState.h
  104. +49 −0 Libraries/ParseKit/PKTerminal.h
  105. +196 −0 Libraries/ParseKit/PKToken.h
  106. +68 −0 Libraries/ParseKit/PKTokenArraySource.h
  107. +65 −0 Libraries/ParseKit/PKTokenAssembly.h
  108. +167 −0 Libraries/ParseKit/PKTokenizer.h
  109. +56 −0 Libraries/ParseKit/PKTokenizerState.h
  110. +34 −0 Libraries/ParseKit/PKTrack.h
  111. +31 −0 Libraries/ParseKit/PKTrackException.h
  112. +21 −0 Libraries/ParseKit/PKTwitterState.h
  113. +18 −0 Libraries/ParseKit/PKTypes.h
  114. +24 −0 Libraries/ParseKit/PKURLState.h
  115. +22 −0 Libraries/ParseKit/PKUppercaseWord.h
  116. +31 −0 Libraries/ParseKit/PKWhitespace.h
  117. +48 −0 Libraries/ParseKit/PKWhitespaceState.h
  118. +31 −0 Libraries/ParseKit/PKWord.h
  119. +49 −0 Libraries/ParseKit/PKWordState.h
  120. +91 −0 Libraries/ParseKit/ParseKit.h
  121. BIN Libraries/libParseKitLib.a
  122. +39 −0 Model/GBClassData.h
  123. +45 −0 Model/GBClassData.m
  124. +22 −0 Model/GBStore.h
  125. +43 −0 Model/GBStore.m
  126. +32 −0 Model/GBStoreProviding.h
  127. +62 −0 Parsing/GBObjectiveCParser.h
  128. +141 −0 Parsing/GBObjectiveCParser.m
  129. +59 −0 Parsing/GBParser.h
  130. +117 −0 Parsing/GBParser.m
  131. +84 −0 Parsing/GBTokenizer.h
  132. +75 −0 Parsing/GBTokenizer.m
  133. +29 −0 Parsing/PKToken+GBToken.h
  134. +21 −0 Parsing/PKToken+GBToken.m
  135. +63 −0 Testing/GBObjectiveCParserTesting.m
  136. +52 −0 Testing/GBStoreTesting.m
  137. +86 −0 Testing/GBTokenizerTesting.m
  138. +283 −5 appledoc.xcodeproj/project.pbxproj
View
20 AppledocTests_prefix.pch
@@ -0,0 +1,20 @@
+//
+// AppledocTests_prefix.pch
+// appledoc
+//
+// Created by Tomaz Kragelj on 22.7.10.
+// Copyright (C) 2010, Gentle Bytes. All rights reserved.
+//
+
+#ifdef __OBJC__
+ #import <Foundation/Foundation.h>
+ #import "NSObject+GBObject.h"
+ #import "NSException+GBException.h"
+ #import "NSFileManager+GBFileManager.h"
+ #import "GBLog.h"
+
+ #define HC_SHORTHAND
+ #import <OCHamcrest/OCHamcrest.h>
+ #import <OCMock/OCMock.h>
+ #import <SenTestingKit/SenTestingKit.h>
+#endif
View
4 Application/GBAppledocApplication.h
@@ -8,7 +8,7 @@
#import <Foundation/Foundation.h>
#import "DDCliApplication.h"
-#import "GBApplicationSettingsProvider.h"
+#import "GBApplicationSettingsProviding.h"
/** The appledoc application handler.
@@ -28,6 +28,6 @@
3. Generating output: This is the final phase where we use the in-memory data to generate output. This step is driven
by `GBGenerator` class.
*/
-@interface GBAppledocApplication : NSObject <GBApplicationSettingsProvider, DDCliApplicationDelegate>
+@interface GBAppledocApplication : NSObject <GBApplicationSettingsProviding, DDCliApplicationDelegate>
@end
View
1 Application/GBAppledocApplication.m
@@ -8,6 +8,7 @@
#import "DDCliUtil.h"
#import "DDGetoptLongParser.h"
+#import "GBParser.h"
#import "GBAppledocApplication.h"
static NSString *kGBArgLogFormat = @"logformat";
View
4 Application/GBApplicationSettingsProvider.h → Application/GBApplicationSettingsProviding.h
@@ -1,5 +1,5 @@
//
-// GBApplicationSettingsProvider.h
+// GBApplicationSettingsProviding.h
// appledoc
//
// Created by Tomaz Kragelj on 23.7.10.
@@ -12,6 +12,6 @@
Application-level settings providers provide application-wide settings and properties that affect application handling.
*/
-@protocol GBApplicationSettingsProvider
+@protocol GBApplicationSettingsProviding
@end
View
1 Libraries/OCHamcrest.framework/Headers
View
1 Libraries/OCHamcrest.framework/OCHamcrest
View
1 Libraries/OCHamcrest.framework/Resources
View
52 Libraries/OCHamcrest.framework/Versions/A/Headers/HCAllOf.h
@@ -0,0 +1,52 @@
+//
+// OCHamcrest - HCAllOf.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+/**
+ Calculates the logical conjunction of multiple matchers.
+
+ Evaluation is shortcut, so subsequent matchers are not called if an earlier matcher returns
+ @c NO.
+*/
+@interface HCAllOf : HCBaseMatcher
+{
+ NSArray* matchers;
+}
+
++ (HCAllOf*) allOf:(NSArray*)theMatchers;
+- (id) initWithMatchers:(NSArray*)theMatchers;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ Evaluates to @c YES only if @b all of the passed in matchers evaluate to @c YES.
+
+ @param matcher Comma-separated list of matchers ending with @c nil.
+*/
+id<HCMatcher> HC_allOf(id<HCMatcher> matcher, ...);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_allOf, available if HC_SHORTHAND is defined.
+*/
+#define allOf HC_allOf
+
+#endif
View
52 Libraries/OCHamcrest.framework/Versions/A/Headers/HCAnyOf.h
@@ -0,0 +1,52 @@
+//
+// OCHamcrest - HCAnyOf.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+/**
+ Calculates the logical disjunction of multiple matchers.
+
+ Evaluation is shortcut, so the subsequent matchers are not called if an earlier matcher returns
+ @c YES.
+*/
+@interface HCAnyOf : HCBaseMatcher
+{
+ NSArray* matchers;
+}
+
++ (HCAnyOf*) anyOf:(NSArray*)theMatchers;
+- (id) initWithMatchers:(NSArray*)theMatchers;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ Evaluates to @c YES if @b any of the passed in matchers evaluate to @c YES.
+
+ @param matcher Comma-separated list of matchers ending with @c nil.
+*/
+id<HCMatcher> HC_anyOf(id<HCMatcher> matcher, ...);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_anyOf, available if HC_SHORTHAND is defined.
+*/
+#define anyOf HC_anyOf
+
+#endif
View
30 Libraries/OCHamcrest.framework/Versions/A/Headers/HCBaseDescription.h
@@ -0,0 +1,30 @@
+//
+// OCHamcrest - HCBaseDescription.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <Foundation/Foundation.h>
+#import <OCHamcrest/HCDescription.h>
+
+
+/**
+ Base class for all HCDescription implementations.
+*/
+@interface HCBaseDescription : NSObject<HCDescription>
+@end
+
+
+/**
+ Methods that must be provided by subclasses of HCBaseDescription.
+*/
+@interface HCBaseDescription (SubclassMustImplement)
+
+/**
+ Append the string @a str to the description.
+*/
+- (void) append:(NSString*)str;
+
+@end
View
21 Libraries/OCHamcrest.framework/Versions/A/Headers/HCBaseMatcher.h
@@ -0,0 +1,21 @@
+//
+// OCHamcrest - HCBaseMatcher.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <Foundation/Foundation.h>
+#import <OCHamcrest/HCMatcher.h>
+
+
+/**
+ Base class for all Matcher implementations.
+
+ Most implementations can just implement matches: and let matches:describingMismatchTo: call
+ it. But if it makes more sense to generate the mismatch description during the matching,
+ override matches:describingMismatchTo: and have matches: call it with a nil description.
+*/
+@interface HCBaseMatcher : NSObject<HCMatcher>
+@end
View
87 Libraries/OCHamcrest.framework/Versions/A/Headers/HCBoxNumber.h
@@ -0,0 +1,87 @@
+//
+// OCHamcrest - HCBoxNumber.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+#ifdef __cplusplus
+
+namespace hamcrest {
+
+/**
+ Boxes scalar value in NSNumber, specialized per type.
+*/
+template <typename T>
+inline
+NSNumber* boxNumber(T value)
+ { return nil; }
+
+template <>
+inline
+NSNumber* boxNumber(BOOL value)
+ { return [NSNumber numberWithBool:value]; }
+
+template <>
+inline
+NSNumber* boxNumber(char value)
+ { return [NSNumber numberWithChar:value]; }
+
+template <>
+inline
+NSNumber* boxNumber(double value)
+ { return [NSNumber numberWithDouble:value]; }
+
+template <>
+inline
+NSNumber* boxNumber(float value)
+ { return [NSNumber numberWithFloat:value]; }
+
+template <>
+inline
+NSNumber* boxNumber(int value)
+ { return [NSNumber numberWithInt:value]; }
+
+template <>
+inline
+NSNumber* boxNumber(long value)
+ { return [NSNumber numberWithLong:value]; }
+
+template <>
+inline
+NSNumber* boxNumber(long long value)
+ { return [NSNumber numberWithLongLong:value]; }
+
+template <>
+inline
+NSNumber* boxNumber(short value)
+ { return [NSNumber numberWithShort:value]; }
+
+template <>
+inline
+NSNumber* boxNumber(unsigned char value)
+ { return [NSNumber numberWithUnsignedChar:value]; }
+
+template <>
+inline
+NSNumber* boxNumber(unsigned int value)
+ { return [NSNumber numberWithUnsignedInt:value]; }
+
+template <>
+inline
+NSNumber* boxNumber(unsigned long value)
+ { return [NSNumber numberWithUnsignedLong:value]; }
+
+template <>
+inline
+NSNumber* boxNumber(unsigned long long value)
+ { return [NSNumber numberWithUnsignedLongLong:value]; }
+
+template <>
+inline
+NSNumber* boxNumber(unsigned short value)
+ { return [NSNumber numberWithUnsignedShort:value]; }
+
+} // namespace hamcrest
+
+#endif // __cplusplus
View
56 Libraries/OCHamcrest.framework/Versions/A/Headers/HCDescribedAs.h
@@ -0,0 +1,56 @@
+//
+// OCHamcrest - HCDescribedAs.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+/**
+ Provides a custom description to another matcher.
+*/
+@interface HCDescribedAs : HCBaseMatcher
+{
+ NSString* descriptionTemplate;
+ id<HCMatcher> matcher;
+ NSArray* values;
+}
+
++ (HCDescribedAs*) describedAs:(NSString*)description
+ forMatcher:(id<HCMatcher>)aMatcher
+ overValues:(NSArray*)templateValues;
+- (id) initWithDescription:(NSString*)description
+ forMatcher:(id<HCMatcher>)aMatcher
+ overValues:(NSArray*)templateValues;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ Wraps an existing matcher and overrides the description when it fails.
+
+ Optional values following the matcher are substituted for \%0, \%1, etc.
+ The last argument must be nil.
+*/
+id<HCMatcher> HC_describedAs(NSString* description, id<HCMatcher> matcher, ...);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_describedAs, available if HC_SHORTHAND is defined.
+*/
+#define describedAs HC_describedAs
+
+#endif
View
46 Libraries/OCHamcrest.framework/Versions/A/Headers/HCDescription.h
@@ -0,0 +1,46 @@
+//
+// OCHamcrest - HCDescription.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Mac
+#import <Foundation/Foundation.h>
+
+@protocol HCSelfDescribing;
+
+
+/**
+ A description of an HCMatcher.
+
+ An HCMatcher will describe itself to a description which can later be used for reporting.
+*/
+@protocol HCDescription
+
+/**
+ Appends some plain text to the description.
+
+ @return self
+*/
+- (id<HCDescription>) appendText:(NSString*)text;
+
+/**
+ Appends description of HCSelfDescribing value to self.
+
+ @return self
+*/
+- (id<HCDescription>) appendDescriptionOf:(id<HCSelfDescribing>)value;
+
+/**
+ Appends an arbitary value to the description.
+*/
+- (id<HCDescription>) appendValue:(id)value;
+
+/**
+ Appends a list of objects to the description.
+*/
+- (id<HCDescription>) appendList:(NSArray*)values
+ start:(NSString*)start separator:(NSString*)separator end:(NSString*)end;
+
+@end
View
48 Libraries/OCHamcrest.framework/Versions/A/Headers/HCHasDescription.h
@@ -0,0 +1,48 @@
+//
+// OCHamcrest - HCHasDescription.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCInvocationMatcher.h>
+
+
+/**
+ Does the object's description satisfy a given matcher?
+*/
+@interface HCHasDescription : HCInvocationMatcher
+{
+}
+
++ (HCHasDescription*) hasDescription:(id<HCMatcher>)descriptionMatcher;
+- (id) initWithDescription:(id<HCMatcher>)descriptionMatcher;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ Evaluates whether [item description] satisfies a given matcher.
+
+ Example: hasDescription(equalTo(result))
+*/
+id<HCMatcher> HC_hasDescription(id item);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_hasDescription, available if HC_SHORTHAND is defined.
+*/
+#define hasDescription HC_hasDescription
+
+#endif
View
37 Libraries/OCHamcrest.framework/Versions/A/Headers/HCInvocationMatcher.h
@@ -0,0 +1,37 @@
+//
+// OCHamcrest - HCInvocationMatcher.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+/**
+ Supporting class for matching a feature of an object.
+
+ Tests whether the result of passing a given invocation to the value satisfies a given matcher.
+*/
+@interface HCInvocationMatcher : HCBaseMatcher
+{
+ NSInvocation* invocation;
+ id<HCMatcher> subMatcher;
+}
+
+/**
+ Helper method for creating an invocation.
+
+ A class is specified only so we can determine the method signature.
+*/
++ (NSInvocation*) createInvocationForSelector:(SEL)selector onClass:(Class)aClass;
+
+- (id) initWithInvocation:(NSInvocation*)anInvocation matching:(id<HCMatcher>)aMatcher;
+
+/**
+ Returns string representation of the invocation's selector.
+*/
+- (NSString*) stringFromSelector;
+
+@end
View
66 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIs.h
@@ -0,0 +1,66 @@
+//
+// OCHamcrest - HCIs.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+/**
+ Decorates another HCMatcher, retaining the behavior but allowing tests to be slightly more
+ expressive.
+
+ For example:
+@code
+assertThat(cheese, equalTo(smelly))
+@endcode
+ vs.
+@code
+assertThat(cheese, is(equalTo(smelly)))
+@endcode
+*/
+@interface HCIs : HCBaseMatcher
+{
+ id<HCMatcher> matcher;
+}
+
++ (HCIs*) is:(id<HCMatcher>)aMatcher;
+- (id) initWithMatcher:(id<HCMatcher>)aMatcher;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ Decorates an item, providing shortcuts to the frequently used is(equalTo(x)).
+
+ For example:
+@code
+assertThat(cheese, is(equalTo(smelly)))
+@endcode
+ vs.
+@code
+assertThat(cheese, is(smelly))
+@endcode
+*/
+id<HCMatcher> HC_is(id item);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_is, available if HC_SHORTHAND is defined.
+*/
+#define is HC_is
+
+#endif
View
61 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsAnything.h
@@ -0,0 +1,61 @@
+//
+// OCHamcrest - HCIsAnything.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+/**
+ A matcher that always returns @c YES.
+*/
+@interface HCIsAnything : HCBaseMatcher
+{
+ NSString* description;
+}
+
++ (HCIsAnything*) isAnything;
++ (HCIsAnything*) isAnythingWithDescription:(NSString*)aDescription;
+- (id) init;
+- (id) initWithDescription:(NSString*)aDescription;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ This matcher always evaluates to @c YES.
+*/
+id<HCMatcher> HC_anything();
+
+/**
+ This matcher always evaluates to <code>YES</code>.
+
+ @param aDescription A meaningful string used when describing itself.
+*/
+id<HCMatcher> HC_anythingWithDescription(NSString* aDescription);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_anything, available if HC_SHORTHAND is defined.
+*/
+#define anything HC_anything
+
+/**
+ Shorthand for HC_anythingWithDescription, available if HC_SHORTHAND is defined.
+*/
+#define anythingWithDescription HC_anythingWithDescription
+
+#endif
View
48 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsCloseTo.h
@@ -0,0 +1,48 @@
+//
+// OCHamcrest - HCIsCloseTo.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+/**
+ Is the value a number equal to a value within some range of acceptable error?
+*/
+@interface HCIsCloseTo : HCBaseMatcher
+{
+ double value;
+ double error;
+}
+
++ (HCIsCloseTo*) isCloseTo:(double)aValue within:(double)anError;
+- (id) initWithValue:(double)aValue error:(double)anError;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ Is the value a number equal to a value within some range of acceptable error?
+*/
+id<HCMatcher> HC_closeTo(double aValue, double anError);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_closeTo, available if HC_SHORTHAND is defined.
+*/
+#define closeTo HC_closeTo
+
+#endif
View
51 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsCollectionContaining.h
@@ -0,0 +1,51 @@
+//
+// OCHamcrest - HCIsCollectionContaining.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+@interface HCIsCollectionContaining : HCBaseMatcher
+{
+ id<HCMatcher> elementMatcher;
+}
+
++ (HCIsCollectionContaining*) isCollectionContaining:(id<HCMatcher>)anElementMatcher;
+- (id) initWithMatcher:(id<HCMatcher>)anElementMatcher;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+id<HCMatcher> HC_hasItem(id item);
+
+/**
+ @param item comma-separated list of items ending with nil.
+*/
+id<HCMatcher> HC_hasItems(id item, ...);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_hasItem, available if HC_SHORTHAND is defined.
+*/
+#define hasItem HC_hasItem
+
+/**
+ Shorthand for HC_hasItems, available if HC_SHORTHAND is defined.
+*/
+#define hasItems HC_hasItems
+
+#endif
View
60 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsCollectionOnlyContaining.h
@@ -0,0 +1,60 @@
+//
+// OCHamcrest - HCIsCollectionOnlyContaining.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+/**
+ Matches collections that only contain elements satisfying a given matcher.
+
+ This matcher will never match an empty collection.
+*/
+@interface HCIsCollectionOnlyContaining : HCBaseMatcher
+{
+ id<HCMatcher> matcher;
+}
+
++ (HCIsCollectionOnlyContaining*) isCollectionOnlyContaining:(id<HCMatcher>)aMatcher;
+- (id) initWithMatcher:(id<HCMatcher>)aMatcher;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ Matches collections that only contain elements satisfying any of a list of items.
+
+ For example,
+ <code>[NSArray arrayWithObjects:@"a", "b", @"c", nil]</code>
+ would satisfy
+ <code>onlyContains(lessThan(@"d"), nil)</code>.
+
+ If an item is not a matcher, it is equivalent to equalTo(item), so the array in the example
+ above would also satisfy
+ <code>onlyContains(@"a", @"b", @"c", nil)</code>.
+
+ @param item comma-separated list of items ending with nil.
+*/
+id<HCMatcher> HC_onlyContains(id item, ...);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_onlyContains, available if HC_SHORTHAND is defined.
+*/
+#define onlyContains HC_onlyContains
+
+#endif
View
43 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsDictionaryContaining.h
@@ -0,0 +1,43 @@
+//
+// OCHamcrest - HCIsDictionaryContaining.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+@interface HCIsDictionaryContaining : HCBaseMatcher
+{
+ id<HCMatcher> keyMatcher;
+ id<HCMatcher> valueMatcher;
+}
+
++ (HCIsDictionaryContaining*) isDictionaryContainingKey:(id<HCMatcher>)theKeyMatcher
+ value:(id<HCMatcher>)theValueMatcher;
+- (id) initWithKeyMatcher:(id<HCMatcher>)theKeyMatcher valueMatcher:(id<HCMatcher>)theValueMatcher;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+id<HCMatcher> HC_hasEntry(id key, id value);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_hasEntry, available if HC_SHORTHAND is defined.
+*/
+#define hasEntry HC_hasEntry
+
+#endif
View
41 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsDictionaryContainingKey.h
@@ -0,0 +1,41 @@
+//
+// OCHamcrest - HCIsDictionaryContainingKey.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+@interface HCIsDictionaryContainingKey : HCBaseMatcher
+{
+ id<HCMatcher> keyMatcher;
+}
+
++ (HCIsDictionaryContainingKey*) isDictionaryContainingKey:(id<HCMatcher>)theKeyMatcher;
+- (id) initWithKeyMatcher:(id<HCMatcher>)theKeyMatcher;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+id<HCMatcher> HC_hasKey(id item);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_hasKey, available if HC_SHORTHAND is defined.
+*/
+#define hasKey HC_hasKey
+
+#endif
View
41 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsDictionaryContainingValue.h
@@ -0,0 +1,41 @@
+//
+// OCHamcrest - HCIsDictionaryContainingValue.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+@interface HCIsDictionaryContainingValue : HCBaseMatcher
+{
+ id<HCMatcher> valueMatcher;
+}
+
++ (HCIsDictionaryContainingValue*) isDictionaryContainingValue:(id<HCMatcher>)theValueMatcher;
+- (id) initWithValueMatcher:(id<HCMatcher>)theValueMatcher;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+id<HCMatcher> HC_hasValue(id item);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_hasValue, available if HC_SHORTHAND is defined.
+*/
+#define hasValue HC_hasValue
+
+#endif
View
47 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsEqual.h
@@ -0,0 +1,47 @@
+//
+// OCHamcrest - HCIsEqual.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+/**
+ Is the object equal to another object, as tested by the isEqual: method?
+*/
+@interface HCIsEqual : HCBaseMatcher
+{
+ id object;
+}
+
++ (HCIsEqual*) isEqualTo:(id)equalArg;
+- (id) initEqualTo:(id)equalArg;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ Is the object equal to another object, as tested by the isEqual: method?
+*/
+id<HCMatcher> HC_equalTo(id equalArg);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_equalTo, available if HC_SHORTHAND is defined.
+*/
+#define equalTo HC_equalTo
+
+#endif
View
44 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsEqualIgnoringCase.h
@@ -0,0 +1,44 @@
+//
+// OCHamcrest - HCIsEqualIgnoringCase.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+/**
+ Tests if a string is equal to another string, regardless of the case.
+*/
+@interface HCIsEqualIgnoringCase : HCBaseMatcher
+{
+ NSString* string;
+}
+
++ (HCIsEqualIgnoringCase*) isEqualIgnoringCase:(NSString*)aString;
+- (id) initWithString:(NSString*)aString;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+id<HCMatcher> HC_equalToIgnoringCase(NSString* aString);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_endsWith, available if HC_SHORTHAND is defined.
+*/
+#define equalToIgnoringCase HC_equalToIgnoringCase
+
+#endif
View
45 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsEqualIgnoringWhiteSpace.h
@@ -0,0 +1,45 @@
+//
+// OCHamcrest - HCIsEqualIgnoringWhiteSpace.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+/**
+ Tests if a string is equal to another string, ignoring any changes in whitespace.
+*/
+@interface HCIsEqualIgnoringWhiteSpace : HCBaseMatcher
+{
+ NSString* originalString;
+ NSString* strippedString;
+}
+
++ (HCIsEqualIgnoringWhiteSpace*) isEqualIgnoringWhiteSpace:(NSString*)aString;
+- (id) initWithString:(NSString*)aString;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+id<HCMatcher> HC_equalToIgnoringWhiteSpace(NSString* aString);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_endsWith, available if HC_SHORTHAND is defined.
+*/
+#define equalToIgnoringWhiteSpace HC_equalToIgnoringWhiteSpace
+
+#endif
View
185 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsEqualToNumber.h
@@ -0,0 +1,185 @@
+//
+// OCHamcrest - HCIsEqualToNumber.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ Is the value, when converted to an NSNumber, equal to another object?
+*/
+id<HCMatcher> HC_equalToBool(BOOL value);
+
+/**
+ Is the value, when converted to an NSNumber, equal to another object?
+*/
+id<HCMatcher> HC_equalToChar(char value);
+
+/**
+ Is the value, when converted to an NSNumber, equal to another object?
+*/
+id<HCMatcher> HC_equalToDouble(double value);
+
+/**
+ Is the value, when converted to an NSNumber, equal to another object?
+*/
+id<HCMatcher> HC_equalToFloat(float value);
+
+/**
+ Is the value, when converted to an NSNumber, equal to another object?
+*/
+id<HCMatcher> HC_equalToInt(int value);
+
+/**
+ Is the value, when converted to an NSNumber, equal to another object?
+*/
+id<HCMatcher> HC_equalToLong(long value);
+
+/**
+ Is the value, when converted to an NSNumber, equal to another object?
+*/
+id<HCMatcher> HC_equalToLongLong(long long value);
+
+/**
+ Is the value, when converted to an NSNumber, equal to another object?
+*/
+id<HCMatcher> HC_equalToShort(short value);
+
+/**
+ Is the value, when converted to an NSNumber, equal to another object?
+*/
+id<HCMatcher> HC_equalToUnsignedChar(unsigned char value);
+
+/**
+ Is the value, when converted to an NSNumber, equal to another object?
+*/
+id<HCMatcher> HC_equalToUnsignedInt(unsigned int value);
+
+/**
+ Is the value, when converted to an NSNumber, equal to another object?
+*/
+id<HCMatcher> HC_equalToUnsignedLong(unsigned long value);
+
+/**
+ Is the value, when converted to an NSNumber, equal to another object?
+*/
+id<HCMatcher> HC_equalToUnsignedLongLong(unsigned long long value);
+
+/**
+ Is the value, when converted to an NSNumber, equal to another object?
+*/
+id<HCMatcher> HC_equalToUnsignedShort(unsigned short value);
+
+
+#if defined(OBJC_API_VERSION) && OBJC_API_VERSION >= 2
+
+/**
+ Is the value, when converted to an NSNumber, equal to another object?
+*/
+id<HCMatcher> HC_equalToInteger(NSInteger value);
+
+/**
+ Is the value, when converted to an NSNumber, equal to another object?
+*/
+id<HCMatcher> HC_equalToUnsignedInteger(NSUInteger value);
+
+#endif // Objective-C 2.0
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_equalToBool, available if HC_SHORTHAND is defined.
+*/
+#define equalToBool HC_equalToBool
+
+/**
+ Shorthand for HC_equalToChar, available if HC_SHORTHAND is defined.
+*/
+#define equalToChar HC_equalToChar
+
+/**
+ Shorthand for HC_equalToDouble, available if HC_SHORTHAND is defined.
+*/
+#define equalToDouble HC_equalToDouble
+
+/**
+ Shorthand for HC_equalToFloat, available if HC_SHORTHAND is defined.
+*/
+#define equalToFloat HC_equalToFloat
+
+/**
+ Shorthand for HC_equalToInt, available if HC_SHORTHAND is defined.
+*/
+#define equalToInt HC_equalToInt
+
+/**
+ Shorthand for HC_equalToLong, available if HC_SHORTHAND is defined.
+*/
+#define equalToLong HC_equalToLong
+
+/**
+ Shorthand for HC_equalToLongLong, available if HC_SHORTHAND is defined.
+*/
+#define equalToLongLong HC_equalToLongLong
+
+/**
+ Shorthand for HC_equalToShort, available if HC_SHORTHAND is defined.
+*/
+#define equalToShort HC_equalToShort
+
+/**
+ Shorthand for HC_equalToUnsignedChar, available if HC_SHORTHAND is defined.
+*/
+#define equalToUnsignedChar HC_equalToUnsignedChar
+
+/**
+ Shorthand for HC_equalToUnsignedInt, available if HC_SHORTHAND is defined.
+*/
+#define equalToUnsignedInt HC_equalToUnsignedInt
+
+/**
+ Shorthand for HC_equalToUnsignedLong, available if HC_SHORTHAND is defined.
+*/
+#define equalToUnsignedLong HC_equalToUnsignedLong
+
+/**
+ Shorthand for HC_equalToUnsignedLongLong, available if HC_SHORTHAND is defined.
+*/
+#define equalToUnsignedLongLong HC_equalToUnsignedLongLong
+
+/**
+ Shorthand for HC_equalToUnsignedShort, available if HC_SHORTHAND is defined.
+*/
+#define equalToUnsignedShort HC_equalToUnsignedShort
+
+
+#if defined(OBJC_API_VERSION) && OBJC_API_VERSION >= 2
+
+/**
+ Shorthand for HC_equalToInteger, available if HC_SHORTHAND is defined.
+*/
+#define equalToInteger HC_equalToInteger
+
+/**
+ Shorthand for HC_equalToUnsignedInteger, available if HC_SHORTHAND is defined.
+*/
+#define equalToUnsignedInteger HC_equalToUnsignedInteger
+
+#endif // Objective-C 2.0
+
+
+#endif // HC_SHORTHAND
View
41 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsIn.h
@@ -0,0 +1,41 @@
+//
+// OCHamcrest - HCIsIn.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+@interface HCIsIn : HCBaseMatcher
+{
+ id collection;
+}
+
++ (HCIsIn*) isInCollection:(id)aCollection;
+- (id) initWithCollection:(id)aCollection;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+id<HCMatcher> HC_isIn(id collection);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_isIn, available if HC_SHORTHAND is defined.
+*/
+#define isIn HC_isIn
+
+#endif
View
47 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsInstanceOf.h
@@ -0,0 +1,47 @@
+//
+// OCHamcrest - HCIsInstanceOf.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+/**
+ Tests whether the value is an instance of a class (including subclasses).
+*/
+@interface HCIsInstanceOf : HCBaseMatcher
+{
+ Class theClass;
+}
+
++ (HCIsInstanceOf*) isInstanceOf:(Class)type;
+- (id) initWithType:(Class)type;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ Is the value an instance of a particular type?
+*/
+id<HCMatcher> HC_instanceOf(Class type);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_instanceOf, available if HC_SHORTHAND is defined.
+*/
+#define instanceOf HC_instanceOf
+
+#endif
View
55 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsNil.h
@@ -0,0 +1,55 @@
+//
+// OCHamcrest - HCIsNil.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+/**
+ Is the value @c nil?
+*/
+@interface HCIsNil : HCBaseMatcher
+{
+}
+
++ (HCIsNil*) isNil;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ Matches if the value is @c nil.
+*/
+id<HCMatcher> HC_nilValue();
+
+/**
+ Matches if the value is not @c nil.
+*/
+id<HCMatcher> HC_notNilValue();
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_nilValue, available if HC_SHORTHAND is defined.
+*/
+#define nilValue HC_nilValue
+
+/**
+ Shorthand for HC_notNilValue, available if HC_SHORTHAND is defined.
+*/
+#define notNilValue HC_notNilValue
+
+#endif
View
56 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsNot.h
@@ -0,0 +1,56 @@
+//
+// OCHamcrest - HCIsNot.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+/**
+ Calculates the logical negation of a matcher.
+*/
+@interface HCIsNot : HCBaseMatcher
+{
+ id<HCMatcher> matcher;
+}
+
++ (HCIsNot*) isNot:(id<HCMatcher>)aMatcher;
+- (id) initNot:(id<HCMatcher>)aMatcher;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ Inverts the rule, providing a shortcut to the frequently used isNot(equalTo(x)).
+
+ For example:
+@code
+assertThat(cheese, isNot(equalTo(smelly)))
+@endcode
+ vs.
+@code
+assertThat(cheese, isNot(smelly))
+@endcode
+*/
+id<HCMatcher> HC_isNot(id item);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_isNot, available if HC_SHORTHAND is defined.
+*/
+#define isNot HC_isNot
+
+#endif
View
47 Libraries/OCHamcrest.framework/Versions/A/Headers/HCIsSame.h
@@ -0,0 +1,47 @@
+//
+// OCHamcrest - HCIsSame.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+/**
+ Is the value the same object as another value?
+*/
+@interface HCIsSame : HCBaseMatcher
+{
+ id object;
+}
+
++ (HCIsSame*) isSameAs:(id)anObject;
+- (id) initSameAs:(id)anObject;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ Evaluates to @c YES only when the argument is this same object.
+*/
+id<HCMatcher> HC_sameInstance(id anObject);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_sameInstance, available if HC_SHORTHAND is defined.
+*/
+#define sameInstance HC_sameInstance
+
+#endif
View
52 Libraries/OCHamcrest.framework/Versions/A/Headers/HCMatcher.h
@@ -0,0 +1,52 @@
+//
+// OCHamcrest - HCMatcher.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCSelfDescribing.h>
+
+
+/**
+ A matcher over acceptable values.
+
+ A matcher is able to describe itself to give feedback when it fails.
+
+ HCMatcher implementations should @b not directly implement this protocol.
+ Instead, @b extend the HCBaseMatcher class, which will ensure that the HCMatcher API can grow
+ to support new features and remain compatible with all HCMatcher implementations.
+*/
+@protocol HCMatcher <HCSelfDescribing>
+
+/**
+ Evaluates the matcher for argument @a item.
+
+ @param item The object against which the matcher is evaluated.
+ @return @c YES if @a item matches, otherwise @c NO.
+*/
+- (BOOL) matches:(id)item;
+
+/**
+ Evaluates the matcher for argument @a item.
+
+ @param item The object against which the matcher is evaluated.
+ @param mismatchDescription The description to be built or appended to if @item does not match.
+ @return @c YES if @a item matches, otherwise @c NO.
+*/
+- (BOOL) matches:(id)item describingMismatchTo:(id<HCDescription>)mismatchDescription;
+
+/**
+ Generates a description of why the matcher has not accepted the item.
+
+ The description will be part of a larger description of why a matching failed, so it should be
+ concise.
+ This method assumes that @c matches:item is false, but will not check this.
+
+ @param item The item that the HCMatcher has rejected.
+ @param mismatchDescription The description to be built or appended to.
+*/
+- (void) describeMismatchOf:(id)item to:(id<HCDescription>)mismatchDescription;
+
+@end
View
36 Libraries/OCHamcrest.framework/Versions/A/Headers/HCMatcherAssert.h
@@ -0,0 +1,36 @@
+//
+// OCHamcrest - HCMatcherAssert.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+@protocol HCMatcher;
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void HC_assertThatWithLocation(id testCase, id actual, id<HCMatcher> matcher,
+ const char* fileName, int lineNumber);
+
+#ifdef __cplusplus
+}
+#endif
+
+/**
+ OCUnit integration asserting that actual value satisfies matcher.
+*/
+#define HC_assertThat(actual, matcher) \
+ HC_assertThatWithLocation(self, actual, matcher, __FILE__, __LINE__)
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_assertThat, available if HC_SHORTHAND is defined.
+*/
+#define assertThat HC_assertThat
+
+#endif
View
248 Libraries/OCHamcrest.framework/Versions/A/Headers/HCNumberAssert.h
@@ -0,0 +1,248 @@
+//
+// OCHamcrest - HCNumberAssert.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+#import <Foundation/Foundation.h>
+
+@protocol HCMatcher;
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void HC_assertThatBoolWithLocation(id testCase, BOOL actual,
+ id<HCMatcher> matcher, const char* fileName, int lineNumber);
+
+void HC_assertThatCharWithLocation(id testCase, char actual,
+ id<HCMatcher> matcher, const char* fileName, int lineNumber);
+
+void HC_assertThatDoubleWithLocation(id testCase, double actual,
+ id<HCMatcher> matcher, const char* fileName, int lineNumber);
+
+void HC_assertThatFloatWithLocation(id testCase, float actual,
+ id<HCMatcher> matcher, const char* fileName, int lineNumber);
+
+void HC_assertThatIntWithLocation(id testCase, int actual,
+ id<HCMatcher> matcher, const char* fileName, int lineNumber);
+
+void HC_assertThatLongWithLocation(id testCase, long actual,
+ id<HCMatcher> matcher, const char* fileName, int lineNumber);
+
+void HC_assertThatLongLongWithLocation(id testCase, long long actual,
+ id<HCMatcher> matcher, const char* fileName, int lineNumber);
+
+void HC_assertThatShortWithLocation(id testCase, short actual,
+ id<HCMatcher> matcher, const char* fileName, int lineNumber);
+
+void HC_assertThatUnsignedCharWithLocation(id testCase, unsigned char actual,
+ id<HCMatcher> matcher, const char* fileName, int lineNumber);
+
+void HC_assertThatUnsignedIntWithLocation(id testCase, unsigned int actual,
+ id<HCMatcher> matcher, const char* fileName, int lineNumber);
+
+void HC_assertThatUnsignedLongWithLocation(id testCase, unsigned long actual,
+ id<HCMatcher> matcher, const char* fileName, int lineNumber);
+
+void HC_assertThatUnsignedLongLongWithLocation(id testCase, unsigned long long actual,
+ id<HCMatcher> matcher, const char* fileName, int lineNumber);
+
+void HC_assertThatUnsignedShortWithLocation(id testCase, unsigned short actual,
+ id<HCMatcher> matcher, const char* fileName, int lineNumber);
+
+#if defined(OBJC_API_VERSION) && OBJC_API_VERSION >= 2
+
+void HC_assertThatIntegerWithLocation(id testCase, NSInteger actual,
+ id<HCMatcher> matcher, const char* fileName, int lineNumber);
+
+void HC_assertThatUnsignedIntegerWithLocation(id testCase, NSUInteger actual,
+ id<HCMatcher> matcher, const char* fileName, int lineNumber);
+
+#endif // Objective-C 2.0
+
+#ifdef __cplusplus
+}
+#endif
+
+/**
+ OCUnit integration asserting that actual value, when converted to an NSNumber satisfies matcher.
+*/
+#define HC_assertThatBool(actual, matcher) \
+ HC_assertThatBoolWithLocation(self, actual, matcher, __FILE__, __LINE__)
+
+/**
+ OCUnit integration asserting that actual value, when converted to an NSNumber satisfies matcher.
+*/
+#define HC_assertThatChar(actual, matcher) \
+ HC_assertThatCharWithLocation(self, actual, matcher, __FILE__, __LINE__)
+
+/**
+ OCUnit integration asserting that actual value, when converted to an NSNumber satisfies matcher.
+*/
+#define HC_assertThatDouble(actual, matcher) \
+ HC_assertThatDoubleWithLocation(self, actual, matcher, __FILE__, __LINE__)
+
+/**
+ OCUnit integration asserting that actual value, when converted to an NSNumber satisfies matcher.
+*/
+#define HC_assertThatFloat(actual, matcher) \
+ HC_assertThatFloatWithLocation(self, actual, matcher, __FILE__, __LINE__)
+
+/**
+ OCUnit integration asserting that actual value, when converted to an NSNumber satisfies matcher.
+*/
+#define HC_assertThatInt(actual, matcher) \
+ HC_assertThatIntWithLocation(self, actual, matcher, __FILE__, __LINE__)
+
+/**
+ OCUnit integration asserting that actual value, when converted to an NSNumber satisfies matcher.
+*/
+#define HC_assertThatLong(actual, matcher) \
+ HC_assertThatLongWithLocation(self, actual, matcher, __FILE__, __LINE__)
+
+/**
+ OCUnit integration asserting that actual value, when converted to an NSNumber satisfies matcher.
+*/
+#define HC_assertThatLongLong(actual, matcher) \
+ HC_assertThatLongLongWithLocation(self, actual, matcher, __FILE__, __LINE__)
+
+/**
+ OCUnit integration asserting that actual value, when converted to an NSNumber satisfies matcher.
+*/
+#define HC_assertThatShort(actual, matcher) \
+ HC_assertThatShortWithLocation(self, actual, matcher, __FILE__, __LINE__)
+
+/**
+ OCUnit integration asserting that actual value, when converted to an NSNumber satisfies matcher.
+*/
+#define HC_assertThatUnsignedChar(actual, matcher) \
+ HC_assertThatUnsignedCharWithLocation(self, actual, matcher, __FILE__, __LINE__)
+
+/**
+ OCUnit integration asserting that actual value, when converted to an NSNumber satisfies matcher.
+*/
+#define HC_assertThatUnsignedInt(actual, matcher) \
+ HC_assertThatUnsignedIntWithLocation(self, actual, matcher, __FILE__, __LINE__)
+
+/**
+ OCUnit integration asserting that actual value, when converted to an NSNumber satisfies matcher.
+*/
+#define HC_assertThatUnsignedLong(actual, matcher) \
+ HC_assertThatUnsignedLongWithLocation(self, actual, matcher, __FILE__, __LINE__)
+
+/**
+ OCUnit integration asserting that actual value, when converted to an NSNumber satisfies matcher.
+*/
+#define HC_assertThatUnsignedLongLong(actual, matcher) \
+ HC_assertThatUnsignedLongLongWithLocation(self, actual, matcher, __FILE__, __LINE__)
+
+/**
+ OCUnit integration asserting that actual value, when converted to an NSNumber satisfies matcher.
+*/
+#define HC_assertThatUnsignedShort(actual, matcher) \
+ HC_assertThatUnsignedShortWithLocation(self, actual, matcher, __FILE__, __LINE__)
+
+
+#if defined(OBJC_API_VERSION) && OBJC_API_VERSION >= 2
+
+/**
+ OCUnit integration asserting that actual value, when converted to an NSNumber satisfies matcher.
+*/
+#define HC_assertThatInteger(actual, matcher) \
+ HC_assertThatIntegerWithLocation(self, actual, matcher, __FILE__, __LINE__)
+
+/**
+ OCUnit integration asserting that actual value, when converted to an NSNumber satisfies matcher.
+*/
+#define HC_assertThatUnsignedInteger(actual, matcher) \
+ HC_assertThatUnsignedIntegerWithLocation(self, actual, matcher, __FILE__, __LINE__)
+
+#endif // Objective-C 2.0
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_assertThatBool, available if HC_SHORTHAND is defined.
+*/
+#define assertThatBool HC_assertThatBool
+
+/**
+ Shorthand for HC_assertThatChar, available if HC_SHORTHAND is defined.
+*/
+#define assertThatChar HC_assertThatChar
+
+/**
+ Shorthand for HC_assertThatDouble, available if HC_SHORTHAND is defined.
+*/
+#define assertThatDouble HC_assertThatDouble
+
+/**
+ Shorthand for HC_assertThatFloat, available if HC_SHORTHAND is defined.
+*/
+#define assertThatFloat HC_assertThatFloat
+
+/**
+ Shorthand for HC_assertThatInt, available if HC_SHORTHAND is defined.
+*/
+#define assertThatInt HC_assertThatInt
+
+/**
+ Shorthand for HC_assertThatLong, available if HC_SHORTHAND is defined.
+*/
+#define assertThatLong HC_assertThatLong
+
+/**
+ Shorthand for HC_assertThatLongLong, available if HC_SHORTHAND is defined.
+*/
+#define assertThatLongLong HC_assertThatLongLong
+
+/**
+ Shorthand for HC_assertThatShort, available if HC_SHORTHAND is defined.
+*/
+#define assertThatShort HC_assertThatShort
+
+/**
+ Shorthand for HC_assertThatUnsignedChar, available if HC_SHORTHAND is defined.
+*/
+#define assertThatUnsignedChar HC_assertThatUnsignedChar
+
+/**
+ Shorthand for HC_assertThatUnsignedInt, available if HC_SHORTHAND is defined.
+*/
+#define assertThatUnsignedInt HC_assertThatUnsignedInt
+
+/**
+ Shorthand for HC_assertThatUnsignedLong, available if HC_SHORTHAND is defined.
+*/
+#define assertThatUnsignedLong HC_assertThatUnsignedLong
+
+/**
+ Shorthand for HC_assertThatUnsignedLongLong, available if HC_SHORTHAND is defined.
+*/
+#define assertThatUnsignedLongLong HC_assertThatUnsignedLongLong
+
+/**
+ Shorthand for HC_assertThatInt, available if HC_SHORTHAND is defined.
+*/
+#define assertThatUnsignedShort HC_assertThatUnsignedShort
+
+
+#if defined(OBJC_API_VERSION) && OBJC_API_VERSION >= 2
+
+/**
+ Shorthand for HC_assertThatInt, available if HC_SHORTHAND is defined.
+*/
+#define assertThatInteger HC_assertThatInteger
+
+/**
+ Shorthand for HC_assertThatInt, available if HC_SHORTHAND is defined.
+*/
+#define assertThatUnsignedInteger HC_assertThatUnsignedInteger
+
+#endif // Objective-C 2.0
+
+#endif // HC_SHORTHAND
View
80 Libraries/OCHamcrest.framework/Versions/A/Headers/HCOrderingComparison.h
@@ -0,0 +1,80 @@
+//
+// OCHamcrest - HCOrderingComparison.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+@interface HCOrderingComparison : HCBaseMatcher
+{
+ id value;
+ NSComparisonResult minCompare;
+ NSComparisonResult maxCompare;
+}
+
++ (HCOrderingComparison*) compare:(id)aValue
+ minCompare:(NSComparisonResult)min
+ maxCompare:(NSComparisonResult)max;
+- (id) initComparing:(id)aValue
+ minCompare:(NSComparisonResult)min
+ maxCompare:(NSComparisonResult)max;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ Is value > expected?
+*/
+id<HCMatcher> HC_greaterThan(id aValue);
+
+/**
+ Is value >= expected?
+*/
+id<HCMatcher> HC_greaterThanOrEqualTo(id aValue);
+
+/**
+ Is value < expected?
+*/
+id<HCMatcher> HC_lessThan(id aValue);
+
+/**
+ Is value <= expected?
+*/
+id<HCMatcher> HC_lessThanOrEqualTo(id aValue);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_greaterThan, available if HC_SHORTHAND is defined.
+*/
+#define greaterThan HC_greaterThan
+
+/**
+ Shorthand for HC_greaterThan, available if HC_SHORTHAND is defined.
+*/
+#define greaterThanOrEqualTo HC_greaterThanOrEqualTo
+
+/**
+ Shorthand for HC_greaterThan, available if HC_SHORTHAND is defined.
+*/
+#define lessThan HC_lessThan
+
+/**
+ Shorthand for HC_lessThanOrEqualTo, available if HC_SHORTHAND is defined.
+*/
+#define lessThanOrEqualTo HC_lessThanOrEqualTo
+
+#endif
View
28 Libraries/OCHamcrest.framework/Versions/A/Headers/HCRequireNonNilString.h
@@ -0,0 +1,28 @@
+//
+// OCHamcrest - HCRequireNonNilString.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Mac
+#import <Foundation/Foundation.h>
+
+
+namespace hamcrest {
+
+/**
+ Throws an NSException if @a string is nil.
+*/
+inline
+void requireNonNilString(NSString* string)
+{
+ if (string == nil)
+ {
+ @throw [NSException exceptionWithName: @"NotAString"
+ reason: @"Must be non-nil string"
+ userInfo: nil];
+ }
+}
+
+} // namespace hamcrest
View
29 Libraries/OCHamcrest.framework/Versions/A/Headers/HCSelfDescribing.h
@@ -0,0 +1,29 @@
+//
+// OCHamcrest - HCSelfDescribing.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <Foundation/Foundation.h>
+
+@protocol HCDescription;
+
+
+/**
+ The ability of an object to describe itself.
+*/
+@protocol HCSelfDescribing <NSObject>
+
+/**
+ Generates a description of the object.
+
+ The description may be part of a description of a larger object of which this is just a
+ component, so it should be worded appropriately.
+
+ @param description The description to be built or appended to.
+*/
+- (void) describeTo:(id<HCDescription>)description;
+
+@end
View
42 Libraries/OCHamcrest.framework/Versions/A/Headers/HCStringContains.h
@@ -0,0 +1,42 @@
+//
+// OCHamcrest - HCStringContains.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCSubstringMatcher.h>
+
+
+/**
+ Tests if the argument is a string that contains a substring.
+*/
+@interface HCStringContains : HCSubstringMatcher
+{
+}
+
++ (HCStringContains*) stringContains:(NSString*)aSubstring;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+id<HCMatcher> HC_containsString(NSString* aSubstring);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_containsString, available if HC_SHORTHAND is defined.
+*/
+#define containsString HC_containsString
+
+#endif
View
40 Libraries/OCHamcrest.framework/Versions/A/Headers/HCStringDescription.h
@@ -0,0 +1,40 @@
+//
+// OCHamcrest - HCStringDescription.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseDescription.h>
+
+@protocol HCSelfDescribing;
+
+
+/**
+ An HCDescription that is stored as a string.
+*/
+@interface HCStringDescription : HCBaseDescription
+{
+ NSMutableString* accumulator;
+}
+
+/**
+ Returns the description of an HCSelfDescribing object as a string.
+
+ @param selfDescribing The object to be described.
+ @return The description of the object.
+*/
++ (NSString*) stringFrom:(id<HCSelfDescribing>)selfDescribing;
+
+/**
+ Returns an empty description.
+*/
++ (HCStringDescription*) stringDescription;
+
+/**
+ Returns an initialized HCStringDescription object that is empty.
+*/
+- (id) init;
+
+@end
View
42 Libraries/OCHamcrest.framework/Versions/A/Headers/HCStringEndsWith.h
@@ -0,0 +1,42 @@
+//
+// OCHamcrest - HCStringEndsWith.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCSubstringMatcher.h>
+
+
+/**
+ Tests if the argument is a string that ends with a substring.
+*/
+@interface HCStringEndsWith : HCSubstringMatcher
+{
+}
+
++ (HCStringEndsWith*) stringEndsWith:(NSString*)aSubstring;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+id<HCMatcher> HC_endsWith(NSString* aSubstring);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_endsWith, available if HC_SHORTHAND is defined.
+*/
+#define endsWith HC_endsWith
+
+#endif
View
42 Libraries/OCHamcrest.framework/Versions/A/Headers/HCStringStartsWith.h
@@ -0,0 +1,42 @@
+//
+// OCHamcrest - HCStringStartsWith.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCSubstringMatcher.h>
+
+
+/**
+ Tests if the argument is a string that starts with a substring.
+*/
+@interface HCStringStartsWith : HCSubstringMatcher
+{
+}
+
++ (HCStringStartsWith*) stringStartsWith:(NSString*)aSubstring;
+
+@end
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+id<HCMatcher> HC_startsWith(NSString* aSubstring);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#ifdef HC_SHORTHAND
+
+/**
+ Shorthand for HC_startsWith, available if HC_SHORTHAND is defined.
+*/
+#define startsWith HC_startsWith
+
+#endif
View
19 Libraries/OCHamcrest.framework/Versions/A/Headers/HCSubstringMatcher.h
@@ -0,0 +1,19 @@
+//
+// OCHamcrest - HCSubstringMatcher.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+ // Inherited
+#import <OCHamcrest/HCBaseMatcher.h>
+
+
+@interface HCSubstringMatcher : HCBaseMatcher
+{
+ NSString* substring;
+}
+
+- (id) initWithSubstring:(NSString*)aSubstring;
+
+@end
View
24 Libraries/OCHamcrest.framework/Versions/A/Headers/HCWrapInMatcher.h
@@ -0,0 +1,24 @@
+//
+// OCHamcrest - HCWrapInMatcher.h
+// Copyright 2009 www.hamcrest.org. See LICENSE.txt
+//
+// Created by: Jon Reid
+//
+
+@protocol HCMatcher;
+
+