Commits

Allan Davis committed 94d0d63

Started Kiwi Tests for game

Comments (0)

Files changed (433)

code/HuntTheWumpus/HuntTheWumpus.xcodeproj/project.pbxproj

 		4E46ABC216111D81006592D7 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4E46ABC116111D81006592D7 /* SenTestingKit.framework */; };
 		4E46ABC416111D81006592D7 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4E46ABC316111D81006592D7 /* Cocoa.framework */; };
 		4E46ABCE16111D81006592D7 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 4E46ABCC16111D81006592D7 /* InfoPlist.strings */; };
-		4E46ABD116111D81006592D7 /* HuntTheWumpusTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E46ABD016111D81006592D7 /* HuntTheWumpusTests.m */; };
 		4E46ABD8161155A8006592D7 /* Game.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E46ABD7161155A8006592D7 /* Game.m */; };
 		4E46ABD9161155A8006592D7 /* Game.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E46ABD7161155A8006592D7 /* Game.m */; };
+		4E46ABE1161161DC006592D7 /* GameSpec.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E46ABE0161161DC006592D7 /* GameSpec.m */; };
+		D1273479777047BF9CE29AC8 /* libPods-test.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CB58754371D54EE5B4FCAE36 /* libPods-test.a */; };
 /* End PBXBuildFile section */
 
 /* Begin PBXCopyFilesBuildPhase section */
 		4E46ABB316111B48006592D7 /* HuntTheWumpus-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "HuntTheWumpus-Prefix.pch"; sourceTree = "<group>"; };
 		4E46ABB416111B48006592D7 /* HuntTheWumpus.1 */ = {isa = PBXFileReference; lastKnownFileType = text.man; path = HuntTheWumpus.1; sourceTree = "<group>"; };
 		4E46ABC016111D81006592D7 /* HuntTheWumpusTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HuntTheWumpusTests.octest; sourceTree = BUILT_PRODUCTS_DIR; };
-		4E46ABC116111D81006592D7 /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; };
-		4E46ABC316111D81006592D7 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = Library/Frameworks/Cocoa.framework; sourceTree = DEVELOPER_DIR; };
+		4E46ABC116111D81006592D7 /* SenTestingKit.framework */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; };
+		4E46ABC316111D81006592D7 /* Cocoa.framework */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = Library/Frameworks/Cocoa.framework; sourceTree = DEVELOPER_DIR; };
 		4E46ABC616111D81006592D7 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
 		4E46ABC716111D81006592D7 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
 		4E46ABC816111D81006592D7 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
 		4E46ABCB16111D81006592D7 /* HuntTheWumpusTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "HuntTheWumpusTests-Info.plist"; sourceTree = "<group>"; };
 		4E46ABCD16111D81006592D7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
-		4E46ABCF16111D81006592D7 /* HuntTheWumpusTests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HuntTheWumpusTests.h; sourceTree = "<group>"; };
-		4E46ABD016111D81006592D7 /* HuntTheWumpusTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HuntTheWumpusTests.m; sourceTree = "<group>"; };
 		4E46ABD216111D81006592D7 /* HuntTheWumpusTests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "HuntTheWumpusTests-Prefix.pch"; sourceTree = "<group>"; };
 		4E46ABD6161155A8006592D7 /* Game.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Game.h; path = models/Game.h; sourceTree = "<group>"; };
 		4E46ABD7161155A8006592D7 /* Game.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Game.m; path = models/Game.m; sourceTree = "<group>"; };
+		4E46ABE0161161DC006592D7 /* GameSpec.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GameSpec.m; sourceTree = "<group>"; };
+		CB58754371D54EE5B4FCAE36 /* libPods-test.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-test.a"; sourceTree = BUILT_PRODUCTS_DIR; };
+		ECD265712D6D4BA3A3C19E38 /* Pods-test.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-test.xcconfig"; path = "Pods/Pods-test.xcconfig"; sourceTree = SOURCE_ROOT; };
 /* End PBXFileReference section */
 
 /* Begin PBXFrameworksBuildPhase section */
 			files = (
 				4E46ABC216111D81006592D7 /* SenTestingKit.framework in Frameworks */,
 				4E46ABC416111D81006592D7 /* Cocoa.framework in Frameworks */,
+				D1273479777047BF9CE29AC8 /* libPods-test.a in Frameworks */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
 				4E46ABC916111D81006592D7 /* HuntTheWumpusTests */,
 				4E46ABAC16111B48006592D7 /* Frameworks */,
 				4E46ABAA16111B48006592D7 /* Products */,
+				ECD265712D6D4BA3A3C19E38 /* Pods-test.xcconfig */,
 			);
 			sourceTree = "<group>";
 		};
 				4E46ABC116111D81006592D7 /* SenTestingKit.framework */,
 				4E46ABC316111D81006592D7 /* Cocoa.framework */,
 				4E46ABC516111D81006592D7 /* Other Frameworks */,
+				CB58754371D54EE5B4FCAE36 /* libPods-test.a */,
 			);
 			name = Frameworks;
 			sourceTree = "<group>";
 		4E46ABC916111D81006592D7 /* HuntTheWumpusTests */ = {
 			isa = PBXGroup;
 			children = (
-				4E46ABCF16111D81006592D7 /* HuntTheWumpusTests.h */,
-				4E46ABD016111D81006592D7 /* HuntTheWumpusTests.m */,
 				4E46ABCA16111D81006592D7 /* Supporting Files */,
+				4E46ABE0161161DC006592D7 /* GameSpec.m */,
 			);
 			path = HuntTheWumpusTests;
 			sourceTree = "<group>";
 				4E46ABBC16111D81006592D7 /* Frameworks */,
 				4E46ABBD16111D81006592D7 /* Resources */,
 				4E46ABBE16111D81006592D7 /* ShellScript */,
+				3128833341D74D72A2EFD859 /* Copy Pods Resources */,
 			);
 			buildRules = (
 			);
 /* End PBXResourcesBuildPhase section */
 
 /* Begin PBXShellScriptBuildPhase section */
+		3128833341D74D72A2EFD859 /* Copy Pods Resources */ = {
+			isa = PBXShellScriptBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			inputPaths = (
+			);
+			name = "Copy Pods Resources";
+			outputPaths = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+			shellPath = /bin/sh;
+			shellScript = "\"${SRCROOT}/Pods/Pods-test-resources.sh\"\n";
+		};
 		4E46ABBE16111D81006592D7 /* ShellScript */ = {
 			isa = PBXShellScriptBuildPhase;
 			buildActionMask = 2147483647;
 			isa = PBXSourcesBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
-				4E46ABD116111D81006592D7 /* HuntTheWumpusTests.m in Sources */,
 				4E46ABD9161155A8006592D7 /* Game.m in Sources */,
+				4E46ABE1161161DC006592D7 /* GameSpec.m in Sources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
 		};
 		4E46ABD416111D81006592D7 /* Debug */ = {
 			isa = XCBuildConfiguration;
+			baseConfigurationReference = ECD265712D6D4BA3A3C19E38 /* Pods-test.xcconfig */;
 			buildSettings = {
 				COMBINE_HIDPI_IMAGES = YES;
-				FRAMEWORK_SEARCH_PATHS = "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"";
+				FRAMEWORK_SEARCH_PATHS = (
+					"$(inherited)",
+					"\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"",
+				);
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
 				GCC_PREFIX_HEADER = "HuntTheWumpusTests/HuntTheWumpusTests-Prefix.pch";
 				INFOPLIST_FILE = "HuntTheWumpusTests/HuntTheWumpusTests-Info.plist";
 		};
 		4E46ABD516111D81006592D7 /* Release */ = {
 			isa = XCBuildConfiguration;
+			baseConfigurationReference = ECD265712D6D4BA3A3C19E38 /* Pods-test.xcconfig */;
 			buildSettings = {
 				COMBINE_HIDPI_IMAGES = YES;
-				FRAMEWORK_SEARCH_PATHS = "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"";
+				FRAMEWORK_SEARCH_PATHS = (
+					"$(inherited)",
+					"\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"",
+				);
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
 				GCC_PREFIX_HEADER = "HuntTheWumpusTests/HuntTheWumpusTests-Prefix.pch";
 				INFOPLIST_FILE = "HuntTheWumpusTests/HuntTheWumpusTests-Info.plist";
 				4E46ABBA16111B48006592D7 /* Release */,
 			);
 			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
 		};
 		4E46ABD316111D81006592D7 /* Build configuration list for PBXNativeTarget "HuntTheWumpusTests" */ = {
 			isa = XCConfigurationList;
 				4E46ABD516111D81006592D7 /* Release */,
 			);
 			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
 		};
 /* End XCConfigurationList section */
 	};

code/HuntTheWumpus/HuntTheWumpus.xcworkspace/contents.xcworkspacedata

+<?xml version='1.0' encoding='UTF-8'?><Workspace version='1.0'><FileRef location='group:Pods/Pods.xcodeproj'/><FileRef location='group:HuntTheWumpus.xcodeproj'/></Workspace>

code/HuntTheWumpus/HuntTheWumpusTests/GameSpec.m

+#import <Kiwi/Kiwi.h>
+#import "Game.h"
+
+SPEC_BEGIN(GameSpec)
+    describe(@"Game", ^{
+        it(@"manage game loop", ^{
+            
+        });
+    });
+SPEC_END

code/HuntTheWumpus/HuntTheWumpusTests/HuntTheWumpusTests.h

-//
-//  HuntTheWumpusTests.h
-//  HuntTheWumpusTests
-//
-//  Created by Allan Davis on 9/24/12.
-//  Copyright (c) 2012 Cajun Code. All rights reserved.
-//
-
-#import <SenTestingKit/SenTestingKit.h>
-
-@interface HuntTheWumpusTests : SenTestCase
-
-@end

code/HuntTheWumpus/HuntTheWumpusTests/HuntTheWumpusTests.m

-//
-//  HuntTheWumpusTests.m
-//  HuntTheWumpusTests
-//
-//  Created by Allan Davis on 9/24/12.
-//  Copyright (c) 2012 Cajun Code. All rights reserved.
-//
-
-#import "HuntTheWumpusTests.h"
-
-@implementation HuntTheWumpusTests
-
-- (void)setUp
-{
-    [super setUp];
-    
-    // Set-up code here.
-}
-
-- (void)tearDown
-{
-    // Tear-down code here.
-    
-    [super tearDown];
-}
-
-- (void)testExample
-{
-    STFail(@"Unit tests are not implemented yet in HuntTheWumpusTests");
-}
-
-@end

code/HuntTheWumpus/Podfile

+platform :osx
+
+target :test do
+  link_with 'HuntTheWumpusTests'
+  pod 'Kiwi', '1.1.0'
+end

code/HuntTheWumpus/Podfile.lock

+
+PODS:
+- Kiwi (1.1.0)
+
+DEPENDENCIES:
+- Kiwi (= 1.1.0)
+
+SPEC CHECKSUMS:
+  Kiwi: 9141d15cf4f52a2178139ea16722f021b4059906
+
+COCOAPODS: 0.14.0

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWAfterAllNode.h

+../../Kiwi/Kiwi/KWAfterAllNode.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWAfterEachNode.h

+../../Kiwi/Kiwi/KWAfterEachNode.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWAny.h

+../../Kiwi/Kiwi/KWAny.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWAsyncVerifier.h

+../../Kiwi/Kiwi/KWAsyncVerifier.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWBeBetweenMatcher.h

+../../Kiwi/Kiwi/KWBeBetweenMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWBeEmptyMatcher.h

+../../Kiwi/Kiwi/KWBeEmptyMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWBeIdenticalToMatcher.h

+../../Kiwi/Kiwi/KWBeIdenticalToMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWBeKindOfClassMatcher.h

+../../Kiwi/Kiwi/KWBeKindOfClassMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWBeMemberOfClassMatcher.h

+../../Kiwi/Kiwi/KWBeMemberOfClassMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWBeNilMatcher.h

+../../Kiwi/Kiwi/KWBeNilMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWBeNonNilMatcher.h

+../../Kiwi/Kiwi/KWBeNonNilMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWBeSubclassOfClassMatcher.h

+../../Kiwi/Kiwi/KWBeSubclassOfClassMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWBeTrueMatcher.h

+../../Kiwi/Kiwi/KWBeTrueMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWBeWithinMatcher.h

+../../Kiwi/Kiwi/KWBeWithinMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWBeZeroMatcher.h

+../../Kiwi/Kiwi/KWBeZeroMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWBeforeAllNode.h

+../../Kiwi/Kiwi/KWBeforeAllNode.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWBeforeEachNode.h

+../../Kiwi/Kiwi/KWBeforeEachNode.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWBlock.h

+../../Kiwi/Kiwi/KWBlock.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWBlockNode.h

+../../Kiwi/Kiwi/KWBlockNode.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWBlockRaiseMatcher.h

+../../Kiwi/Kiwi/KWBlockRaiseMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWCallSite.h

+../../Kiwi/Kiwi/KWCallSite.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWCaptureSpy.h

+../../Kiwi/Kiwi/KWCaptureSpy.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWConformToProtocolMatcher.h

+../../Kiwi/Kiwi/KWConformToProtocolMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWContainMatcher.h

+../../Kiwi/Kiwi/KWContainMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWContextNode.h

+../../Kiwi/Kiwi/KWContextNode.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWCountType.h

+../../Kiwi/Kiwi/KWCountType.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWDeviceInfo.h

+../../Kiwi/Kiwi/KWDeviceInfo.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWEqualMatcher.h

+../../Kiwi/Kiwi/KWEqualMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWExample.h

+../../Kiwi/Kiwi/KWExample.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWExampleGroupBuilder.h

+../../Kiwi/Kiwi/KWExampleGroupBuilder.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWExampleGroupDelegate.h

+../../Kiwi/Kiwi/KWExampleGroupDelegate.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWExampleNode.h

+../../Kiwi/Kiwi/KWExampleNode.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWExampleNodeVisitor.h

+../../Kiwi/Kiwi/KWExampleNodeVisitor.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWExampleSuite.h

+../../Kiwi/Kiwi/KWExampleSuite.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWExistVerifier.h

+../../Kiwi/Kiwi/KWExistVerifier.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWExpectationType.h

+../../Kiwi/Kiwi/KWExpectationType.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWFailure.h

+../../Kiwi/Kiwi/KWFailure.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWFormatter.h

+../../Kiwi/Kiwi/KWFormatter.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWFutureObject.h

+../../Kiwi/Kiwi/KWFutureObject.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWHCMatcher.h

+../../Kiwi/Kiwi/KWHCMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWHamcrestMatcher.h

+../../Kiwi/Kiwi/KWHamcrestMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWHamrestMatchingAdditions.h

+../../Kiwi/Kiwi/KWHamrestMatchingAdditions.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWHaveMatcher.h

+../../Kiwi/Kiwi/KWHaveMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWHaveValueMatcher.h

+../../Kiwi/Kiwi/KWHaveValueMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWInequalityMatcher.h

+../../Kiwi/Kiwi/KWInequalityMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWIntercept.h

+../../Kiwi/Kiwi/KWIntercept.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWInvocationCapturer.h

+../../Kiwi/Kiwi/KWInvocationCapturer.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWItNode.h

+../../Kiwi/Kiwi/KWItNode.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWMatchVerifier.h

+../../Kiwi/Kiwi/KWMatchVerifier.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWMatcher.h

+../../Kiwi/Kiwi/KWMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWMatcherFactory.h

+../../Kiwi/Kiwi/KWMatcherFactory.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWMatchers.h

+../../Kiwi/Kiwi/KWMatchers.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWMatching.h

+../../Kiwi/Kiwi/KWMatching.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWMessagePattern.h

+../../Kiwi/Kiwi/KWMessagePattern.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWMessageSpying.h

+../../Kiwi/Kiwi/KWMessageSpying.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWMessageTracker.h

+../../Kiwi/Kiwi/KWMessageTracker.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWMock.h

+../../Kiwi/Kiwi/KWMock.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWNull.h

+../../Kiwi/Kiwi/KWNull.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWObjCUtilities.h

+../../Kiwi/Kiwi/KWObjCUtilities.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWPendingNode.h

+../../Kiwi/Kiwi/KWPendingNode.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWProbe.h

+../../Kiwi/Kiwi/KWProbe.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWProbePoller.h

+../../Kiwi/Kiwi/KWProbePoller.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWRaiseMatcher.h

+../../Kiwi/Kiwi/KWRaiseMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWReceiveMatcher.h

+../../Kiwi/Kiwi/KWReceiveMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWRegisterMatchersNode.h

+../../Kiwi/Kiwi/KWRegisterMatchersNode.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWReporting.h

+../../Kiwi/Kiwi/KWReporting.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWRespondToSelectorMatcher.h

+../../Kiwi/Kiwi/KWRespondToSelectorMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWSpec.h

+../../Kiwi/Kiwi/KWSpec.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWStringContainsMatcher.h

+../../Kiwi/Kiwi/KWStringContainsMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWStringPrefixMatcher.h

+../../Kiwi/Kiwi/KWStringPrefixMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWStringUtilities.h

+../../Kiwi/Kiwi/KWStringUtilities.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWStub.h

+../../Kiwi/Kiwi/KWStub.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWTestCase.h

+../../Kiwi/Kiwi/KWTestCase.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWUserDefinedMatcher.h

+../../Kiwi/Kiwi/KWUserDefinedMatcher.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWValue.h

+../../Kiwi/Kiwi/KWValue.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWVerifying.h

+../../Kiwi/Kiwi/KWVerifying.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KWWorkarounds.h

+../../Kiwi/Kiwi/KWWorkarounds.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/Kiwi.h

+../../Kiwi/Kiwi/Kiwi.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KiwiBlockMacros.h

+../../Kiwi/Kiwi/KiwiBlockMacros.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KiwiConfiguration.h

+../../Kiwi/Kiwi/KiwiConfiguration.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KiwiMacros.h

+../../Kiwi/Kiwi/KiwiMacros.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/KiwiNewMacros.h

+../../Kiwi/Kiwi/KiwiNewMacros.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/NSInvocation+KiwiAdditions.h

+../../Kiwi/Kiwi/NSInvocation+KiwiAdditions.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/NSMethodSignature+KiwiAdditions.h

+../../Kiwi/Kiwi/NSMethodSignature+KiwiAdditions.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/NSNumber+KiwiAdditions.h

+../../Kiwi/Kiwi/NSNumber+KiwiAdditions.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/NSObject+KiwiMockAdditions.h

+../../Kiwi/Kiwi/NSObject+KiwiMockAdditions.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/NSObject+KiwiStubAdditions.h

+../../Kiwi/Kiwi/NSObject+KiwiStubAdditions.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/NSObject+KiwiVerifierAdditions.h

+../../Kiwi/Kiwi/NSObject+KiwiVerifierAdditions.h

code/HuntTheWumpus/Pods/BuildHeaders/Kiwi/NSValue+KiwiAdditions.h

+../../Kiwi/Kiwi/NSValue+KiwiAdditions.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWAfterAllNode.h

+../../Kiwi/Kiwi/KWAfterAllNode.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWAfterEachNode.h

+../../Kiwi/Kiwi/KWAfterEachNode.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWAny.h

+../../Kiwi/Kiwi/KWAny.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWAsyncVerifier.h

+../../Kiwi/Kiwi/KWAsyncVerifier.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWBeBetweenMatcher.h

+../../Kiwi/Kiwi/KWBeBetweenMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWBeEmptyMatcher.h

+../../Kiwi/Kiwi/KWBeEmptyMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWBeIdenticalToMatcher.h

+../../Kiwi/Kiwi/KWBeIdenticalToMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWBeKindOfClassMatcher.h

+../../Kiwi/Kiwi/KWBeKindOfClassMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWBeMemberOfClassMatcher.h

+../../Kiwi/Kiwi/KWBeMemberOfClassMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWBeNilMatcher.h

+../../Kiwi/Kiwi/KWBeNilMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWBeNonNilMatcher.h

+../../Kiwi/Kiwi/KWBeNonNilMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWBeSubclassOfClassMatcher.h

+../../Kiwi/Kiwi/KWBeSubclassOfClassMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWBeTrueMatcher.h

+../../Kiwi/Kiwi/KWBeTrueMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWBeWithinMatcher.h

+../../Kiwi/Kiwi/KWBeWithinMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWBeZeroMatcher.h

+../../Kiwi/Kiwi/KWBeZeroMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWBeforeAllNode.h

+../../Kiwi/Kiwi/KWBeforeAllNode.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWBeforeEachNode.h

+../../Kiwi/Kiwi/KWBeforeEachNode.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWBlock.h

+../../Kiwi/Kiwi/KWBlock.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWBlockNode.h

+../../Kiwi/Kiwi/KWBlockNode.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWBlockRaiseMatcher.h

+../../Kiwi/Kiwi/KWBlockRaiseMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWCallSite.h

+../../Kiwi/Kiwi/KWCallSite.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWCaptureSpy.h

+../../Kiwi/Kiwi/KWCaptureSpy.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWConformToProtocolMatcher.h

+../../Kiwi/Kiwi/KWConformToProtocolMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWContainMatcher.h

+../../Kiwi/Kiwi/KWContainMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWContextNode.h

+../../Kiwi/Kiwi/KWContextNode.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWCountType.h

+../../Kiwi/Kiwi/KWCountType.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWDeviceInfo.h

+../../Kiwi/Kiwi/KWDeviceInfo.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWEqualMatcher.h

+../../Kiwi/Kiwi/KWEqualMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWExample.h

+../../Kiwi/Kiwi/KWExample.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWExampleGroupBuilder.h

+../../Kiwi/Kiwi/KWExampleGroupBuilder.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWExampleGroupDelegate.h

+../../Kiwi/Kiwi/KWExampleGroupDelegate.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWExampleNode.h

+../../Kiwi/Kiwi/KWExampleNode.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWExampleNodeVisitor.h

+../../Kiwi/Kiwi/KWExampleNodeVisitor.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWExampleSuite.h

+../../Kiwi/Kiwi/KWExampleSuite.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWExistVerifier.h

+../../Kiwi/Kiwi/KWExistVerifier.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWExpectationType.h

+../../Kiwi/Kiwi/KWExpectationType.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWFailure.h

+../../Kiwi/Kiwi/KWFailure.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWFormatter.h

+../../Kiwi/Kiwi/KWFormatter.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWFutureObject.h

+../../Kiwi/Kiwi/KWFutureObject.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWHCMatcher.h

+../../Kiwi/Kiwi/KWHCMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWHamcrestMatcher.h

+../../Kiwi/Kiwi/KWHamcrestMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWHamrestMatchingAdditions.h

+../../Kiwi/Kiwi/KWHamrestMatchingAdditions.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWHaveMatcher.h

+../../Kiwi/Kiwi/KWHaveMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWHaveValueMatcher.h

+../../Kiwi/Kiwi/KWHaveValueMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWInequalityMatcher.h

+../../Kiwi/Kiwi/KWInequalityMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWIntercept.h

+../../Kiwi/Kiwi/KWIntercept.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWInvocationCapturer.h

+../../Kiwi/Kiwi/KWInvocationCapturer.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWItNode.h

+../../Kiwi/Kiwi/KWItNode.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWMatchVerifier.h

+../../Kiwi/Kiwi/KWMatchVerifier.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWMatcher.h

+../../Kiwi/Kiwi/KWMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWMatcherFactory.h

+../../Kiwi/Kiwi/KWMatcherFactory.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWMatchers.h

+../../Kiwi/Kiwi/KWMatchers.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWMatching.h

+../../Kiwi/Kiwi/KWMatching.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWMessagePattern.h

+../../Kiwi/Kiwi/KWMessagePattern.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWMessageSpying.h

+../../Kiwi/Kiwi/KWMessageSpying.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWMessageTracker.h

+../../Kiwi/Kiwi/KWMessageTracker.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWMock.h

+../../Kiwi/Kiwi/KWMock.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWNull.h

+../../Kiwi/Kiwi/KWNull.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWObjCUtilities.h

+../../Kiwi/Kiwi/KWObjCUtilities.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWPendingNode.h

+../../Kiwi/Kiwi/KWPendingNode.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWProbe.h

+../../Kiwi/Kiwi/KWProbe.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWProbePoller.h

+../../Kiwi/Kiwi/KWProbePoller.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWRaiseMatcher.h

+../../Kiwi/Kiwi/KWRaiseMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWReceiveMatcher.h

+../../Kiwi/Kiwi/KWReceiveMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWRegisterMatchersNode.h

+../../Kiwi/Kiwi/KWRegisterMatchersNode.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWReporting.h

+../../Kiwi/Kiwi/KWReporting.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWRespondToSelectorMatcher.h

+../../Kiwi/Kiwi/KWRespondToSelectorMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWSpec.h

+../../Kiwi/Kiwi/KWSpec.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWStringContainsMatcher.h

+../../Kiwi/Kiwi/KWStringContainsMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWStringPrefixMatcher.h

+../../Kiwi/Kiwi/KWStringPrefixMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWStringUtilities.h

+../../Kiwi/Kiwi/KWStringUtilities.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWStub.h

+../../Kiwi/Kiwi/KWStub.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWTestCase.h

+../../Kiwi/Kiwi/KWTestCase.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWUserDefinedMatcher.h

+../../Kiwi/Kiwi/KWUserDefinedMatcher.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWValue.h

+../../Kiwi/Kiwi/KWValue.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWVerifying.h

+../../Kiwi/Kiwi/KWVerifying.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KWWorkarounds.h

+../../Kiwi/Kiwi/KWWorkarounds.h

code/HuntTheWumpus/Pods/Headers/Kiwi/Kiwi.h

+../../Kiwi/Kiwi/Kiwi.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KiwiBlockMacros.h

+../../Kiwi/Kiwi/KiwiBlockMacros.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KiwiConfiguration.h

+../../Kiwi/Kiwi/KiwiConfiguration.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KiwiMacros.h

+../../Kiwi/Kiwi/KiwiMacros.h

code/HuntTheWumpus/Pods/Headers/Kiwi/KiwiNewMacros.h

+../../Kiwi/Kiwi/KiwiNewMacros.h

code/HuntTheWumpus/Pods/Headers/Kiwi/NSInvocation+KiwiAdditions.h

+../../Kiwi/Kiwi/NSInvocation+KiwiAdditions.h

code/HuntTheWumpus/Pods/Headers/Kiwi/NSMethodSignature+KiwiAdditions.h

+../../Kiwi/Kiwi/NSMethodSignature+KiwiAdditions.h

code/HuntTheWumpus/Pods/Headers/Kiwi/NSNumber+KiwiAdditions.h

+../../Kiwi/Kiwi/NSNumber+KiwiAdditions.h

code/HuntTheWumpus/Pods/Headers/Kiwi/NSObject+KiwiMockAdditions.h

+../../Kiwi/Kiwi/NSObject+KiwiMockAdditions.h

code/HuntTheWumpus/Pods/Headers/Kiwi/NSObject+KiwiStubAdditions.h

+../../Kiwi/Kiwi/NSObject+KiwiStubAdditions.h

code/HuntTheWumpus/Pods/Headers/Kiwi/NSObject+KiwiVerifierAdditions.h

+../../Kiwi/Kiwi/NSObject+KiwiVerifierAdditions.h

code/HuntTheWumpus/Pods/Headers/Kiwi/NSValue+KiwiAdditions.h

+../../Kiwi/Kiwi/NSValue+KiwiAdditions.h

code/HuntTheWumpus/Pods/Kiwi/Classes/Carrier.h

+//
+// Licensed under the terms in License.txt
+//
+// Copyright 2010 Allen Ding. All rights reserved.
+//
+
+#import "Cruiser.h"
+
+@interface Carrier : Cruiser
+
+@end

code/HuntTheWumpus/Pods/Kiwi/Classes/Carrier.m

+//
+// Licensed under the terms in License.txt
+//
+// Copyright 2010 Allen Ding. All rights reserved.
+//
+
+#import "Carrier.h"
+
+@implementation Carrier
+
+@end

code/HuntTheWumpus/Pods/Kiwi/Classes/Cruiser.h

+//
+// Licensed under the terms in License.txt
+//
+// Copyright 2010 Allen Ding. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import "JumpCapable.h"
+#import "SpaceShip.h"
+
+@class Engine;
+@class Fighter;
+
+@interface Cruiser : SpaceShip<JumpCapable> {
+@private
+    NSString *callsign;
+    Engine *engine;
+    NSArray *fighters;
+}
+#pragma mark -
+#pragma mark Initializing
+
+- (id)initWithCallsign:(NSString *)aCallsign;
+
++ (id)cruiser;
++ (id)cruiserWithCallsign:(NSString *)aCallsign;
+
+#pragma mark -
+#pragma mark Properties
+
+@property (nonatomic, readonly) NSString *callsign;
+@property (nonatomic, retain) Engine *engine;
+@property (nonatomic, readonly) NSString *classification;
+
++ (NSString *)classification;
+- (NSUInteger)crewComplement;
+
+#pragma mark -
+#pragma mark Managing Fighters
+
+@property (nonatomic, readwrite, retain) NSArray *fighters;
+
+- (Fighter *)fighterWithCallsign:(NSString *)aCallsign;
+- (NSArray *)fightersInSquadron:(NSString *)aSquadron;
+
+#pragma mark -
+#pragma mark Managing Systems
+
+- (BOOL)raiseShields;
+- (float)energyLevelInWarpCore:(NSUInteger)anIndex;
+
+#pragma mark -
+#pragma mark Getting Navigation Information
+
+// starHash => key/2 + key/4 + key/8 + ... 1
+- (NSUInteger)computeStarHashForKey:(NSUInteger)aKey;
+
+#pragma mark -
+#pragma mark Orbiting
+
+- (void)orbitPlanet:(id)aPlanet;
+- (float)orbitPeriodForMass:(float)aMass;
+
+#pragma mark -
+#pragma mark Jumping
+
+- (void)computeParsecs;
+- (void)engageHyperdrive;
+- (NSUInteger)hyperdriveFuelLevel;
+
+#pragma mark -
+#pragma mark Raising
+
+- (void)raise;
+- (void)raiseWithName:(NSString *)aName description:(NSString *)aDescription;
+
+@end

code/HuntTheWumpus/Pods/Kiwi/Classes/Cruiser.m

+//
+// Licensed under the terms in License.txt
+//
+// Copyright 2010 Allen Ding. All rights reserved.
+//
+
+#import "Cruiser.h"
+#import "Engine.h"
+#import "Fighter.h"
+
+@implementation Cruiser
+
+#pragma mark -
+#pragma mark Initializing
+
+- (id)initWithCallsign:(NSString *)aCallsign {
+    if ((self = [super init])) {
+        callsign = [aCallsign copy];
+    }
+
+    return self;
+}
+
++ (id)cruiser {
+    return [self cruiserWithCallsign:nil];
+}
+
++ (id)cruiserWithCallsign:(NSString *)aCallsign {
+    return [[[self alloc] initWithCallsign:aCallsign] autorelease];
+}
+
+- (void)dealloc {
+    [callsign release];
+    [engine release];
+    [fighters release];
+    [super dealloc];
+}
+
+#pragma mark -
+#pragma mark Properties
+
+@synthesize callsign;
+@synthesize engine;
+@dynamic classification;
+
++ (NSString *)classification {
+    return @"Capital Ship";
+}
+
+- (NSString *)classification {
+  return [[self class] classification];
+}
+
+- (NSUInteger)crewComplement {
+    return 1010;
+}
+
+#pragma mark -
+#pragma mark Managing Fighters
+
+@synthesize fighters;
+
+- (Fighter *)fighterWithCallsign:(NSString *)aCallsign {
+    for (Fighter *fighter in self.fighters) {
+        if ([fighter.callsign isEqualToString:aCallsign])