Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

New target with Xcode 'native' unit tests

  • Loading branch information...
commit ee093b5382e14ef4ea65ca50f4c7b146365384ac 1 parent 44cecc8
@amjaliks amjaliks authored
View
158 MapView/MapView.xcodeproj/project.pbxproj
@@ -34,6 +34,13 @@
/* Begin PBXBuildFile section */
090FE3140ECD71A500035FBC /* RMTilesUpdateDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 090FE3130ECD71A500035FBC /* RMTilesUpdateDelegate.h */; };
126693040EB76C0B00E002D5 /* RMConfiguration.m in Sources */ = {isa = PBXBuildFile; fileRef = 126692A00EB75C0A00E002D5 /* RMConfiguration.m */; };
+ 17157D88133BBC8300E28941 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
+ 17157D89133BBC8300E28941 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; };
+ 17157D8A133BBC8300E28941 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; };
+ 17157D90133BBC8300E28941 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 17157D8E133BBC8300E28941 /* InfoPlist.strings */; };
+ 17157D99133BBCEF00E28941 /* RMFoundationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 17157D80133BBAD800E28941 /* RMFoundationTests.m */; };
+ 17157D9A133BBD0500E28941 /* RMFoundation.c in Sources */ = {isa = PBXBuildFile; fileRef = 23A0AAE80EB90A99003A4521 /* RMFoundation.c */; };
+ 17157D9B133BBD0700E28941 /* RMFoundation.c in Sources */ = {isa = PBXBuildFile; fileRef = 23A0AAE80EB90A99003A4521 /* RMFoundation.c */; };
175701DE1323C2E900A5D314 /* NSUserDefaults+RouteMe.h in Headers */ = {isa = PBXBuildFile; fileRef = 175701DC1323C2E900A5D314 /* NSUserDefaults+RouteMe.h */; };
175701DF1323C2E900A5D314 /* NSUserDefaults+RouteMe.m in Sources */ = {isa = PBXBuildFile; fileRef = 175701DD1323C2E900A5D314 /* NSUserDefaults+RouteMe.m */; };
17F02BB11319BA4B00260C6B /* RouteMe.h in Headers */ = {isa = PBXBuildFile; fileRef = 17F02BB01319BA4B00260C6B /* RouteMe.h */; };
@@ -68,7 +75,6 @@
2BEC60340F8AC712008FB858 /* RMCoreAnimationRenderer.m in Sources */ = {isa = PBXBuildFile; fileRef = B83E64BE0E80E73F001663B6 /* RMCoreAnimationRenderer.m */; };
2BEC60350F8AC713008FB858 /* RMDatabaseCache.m in Sources */ = {isa = PBXBuildFile; fileRef = B8474B990EB40094006A0BC1 /* RMDatabaseCache.m */; };
2BEC60360F8AC715008FB858 /* RMFileTileImage.m in Sources */ = {isa = PBXBuildFile; fileRef = B83E64DF0E80E73F001663B6 /* RMFileTileImage.m */; };
- 2BEC60370F8AC718008FB858 /* RMFoundation.c in Sources */ = {isa = PBXBuildFile; fileRef = 23A0AAE80EB90A99003A4521 /* RMFoundation.c */; };
2BEC60380F8AC71A008FB858 /* RMFractalTileProjection.m in Sources */ = {isa = PBXBuildFile; fileRef = B83E64EA0E80E73F001663B6 /* RMFractalTileProjection.m */; };
2BEC60390F8AC71C008FB858 /* RMGeoHash.m in Sources */ = {isa = PBXBuildFile; fileRef = F5C12D290F8A86CA00A894D2 /* RMGeoHash.m */; };
2BEC603A0F8AC71D008FB858 /* RMLayerCollection.m in Sources */ = {isa = PBXBuildFile; fileRef = B8FA92180E9315EC003A9FE6 /* RMLayerCollection.m */; };
@@ -237,6 +243,12 @@
1266929F0EB75C0A00E002D5 /* RMConfiguration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RMConfiguration.h; sourceTree = "<group>"; };
126692A00EB75C0A00E002D5 /* RMConfiguration.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RMConfiguration.m; sourceTree = "<group>"; };
12F2031E0EBB65E9003D7B6B /* RMMapViewDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RMMapViewDelegate.h; sourceTree = "<group>"; };
+ 17157D7F133BBAD800E28941 /* RMFoundationTests.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RMFoundationTests.h; sourceTree = "<group>"; };
+ 17157D80133BBAD800E28941 /* RMFoundationTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RMFoundationTests.m; sourceTree = "<group>"; };
+ 17157D87133BBC8300E28941 /* MapViewTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MapViewTests.octest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 17157D8D133BBC8300E28941 /* MapViewTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MapViewTests-Info.plist"; sourceTree = "<group>"; };
+ 17157D8F133BBC8300E28941 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ 17157D91133BBC8300E28941 /* MapViewTests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MapViewTests-Prefix.pch"; sourceTree = "<group>"; };
175701DC1323C2E900A5D314 /* NSUserDefaults+RouteMe.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSUserDefaults+RouteMe.h"; sourceTree = "<group>"; };
175701DD1323C2E900A5D314 /* NSUserDefaults+RouteMe.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSUserDefaults+RouteMe.m"; sourceTree = "<group>"; };
17F02BB01319BA4B00260C6B /* RouteMe.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RouteMe.h; sourceTree = "<group>"; };
@@ -390,6 +402,16 @@
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
+ 17157D83133BBC8300E28941 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 17157D88133BBC8300E28941 /* UIKit.framework in Frameworks */,
+ 17157D89133BBC8300E28941 /* Foundation.framework in Frameworks */,
+ 17157D8A133BBC8300E28941 /* CoreGraphics.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
2BF3078D0F8AC5C0007014EE /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
@@ -431,6 +453,16 @@
name = Configuration;
sourceTree = "<group>";
};
+ 17157D8C133BBC8300E28941 /* MapViewTests */ = {
+ isa = PBXGroup;
+ children = (
+ 17157D8D133BBC8300E28941 /* MapViewTests-Info.plist */,
+ 17157D8E133BBC8300E28941 /* InfoPlist.strings */,
+ 17157D91133BBC8300E28941 /* MapViewTests-Prefix.pch */,
+ );
+ path = MapViewTests;
+ sourceTree = "<group>";
+ };
175701DB1323C2CF00A5D314 /* iOS Additions */ = {
isa = PBXGroup;
children = (
@@ -446,6 +478,7 @@
3866784C0F6B9B9200C56B17 /* MapView.framework */,
2BF3078F0F8AC5C0007014EE /* RM Unit Tests.app */,
17F31EFA1331050A00122B16 /* libMapView.a */,
+ 17157D87133BBC8300E28941 /* MapViewTests.octest */,
);
name = Products;
sourceTree = "<group>";
@@ -483,8 +516,11 @@
2B246B230F8AE20300A7D55D /* Testing */ = {
isa = PBXGroup;
children = (
+ 17157D8C133BBC8300E28941 /* MapViewTests */,
2B8C8A230F8EB855002E8CF3 /* RouteMeTests.h */,
2B8C8A240F8EB855002E8CF3 /* RouteMeTests.m */,
+ 17157D7F133BBAD800E28941 /* RMFoundationTests.h */,
+ 17157D80133BBAD800E28941 /* RMFoundationTests.m */,
2BF306BF0F8ABC35007014EE /* Google Toolbox for Mac (unit testing) */,
);
name = Testing;
@@ -854,6 +890,24 @@
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
+ 17157D86133BBC8300E28941 /* MapViewTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 17157D96133BBC8300E28941 /* Build configuration list for PBXNativeTarget "MapViewTests" */;
+ buildPhases = (
+ 17157D82133BBC8300E28941 /* Sources */,
+ 17157D83133BBC8300E28941 /* Frameworks */,
+ 17157D84133BBC8300E28941 /* Resources */,
+ 17157D85133BBC8300E28941 /* ShellScript */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = MapViewTests;
+ productName = MapViewTests;
+ productReference = 17157D87133BBC8300E28941 /* MapViewTests.octest */;
+ productType = "com.apple.product-type.bundle";
+ };
2BF3078E0F8AC5C0007014EE /* Unit Tests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 2BF307940F8AC5C1007014EE /* Build configuration list for PBXNativeTarget "Unit Tests" */;
@@ -905,6 +959,7 @@
Japanese,
French,
German,
+ en,
);
mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
projectDirPath = "";
@@ -917,6 +972,7 @@
projectRoot = "";
targets = (
B8C974130E8A19B2007D16AD /* MapView */,
+ 17157D86133BBC8300E28941 /* MapViewTests */,
386676D40F6B73AC00C56B17 /* MapView-framework */,
2B2BD43A0F79AA1B00B8B9A7 /* Doxygen-Documentation */,
2BF3078E0F8AC5C0007014EE /* Unit Tests */,
@@ -935,6 +991,14 @@
/* End PBXReferenceProxy section */
/* Begin PBXResourcesBuildPhase section */
+ 17157D84133BBC8300E28941 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 17157D90133BBC8300E28941 /* InfoPlist.strings in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
2BF3078B0F8AC5C0007014EE /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
@@ -947,6 +1011,19 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
+ 17157D85133BBC8300E28941 /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n";
+ };
2B2BD4390F79AA1B00B8B9A7 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@@ -989,6 +1066,15 @@
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
+ 17157D82133BBC8300E28941 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 17157D99133BBCEF00E28941 /* RMFoundationTests.m in Sources */,
+ 17157D9A133BBD0500E28941 /* RMFoundation.c in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
2BF3078C0F8AC5C0007014EE /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
@@ -1003,7 +1089,6 @@
2BEC60340F8AC712008FB858 /* RMCoreAnimationRenderer.m in Sources */,
2BEC60350F8AC713008FB858 /* RMDatabaseCache.m in Sources */,
2BEC60360F8AC715008FB858 /* RMFileTileImage.m in Sources */,
- 2BEC60370F8AC718008FB858 /* RMFoundation.c in Sources */,
2BEC60380F8AC71A008FB858 /* RMFractalTileProjection.m in Sources */,
2BEC60390F8AC71C008FB858 /* RMGeoHash.m in Sources */,
2BEC603A0F8AC71D008FB858 /* RMLayerCollection.m in Sources */,
@@ -1044,6 +1129,7 @@
25757F521291C8850083D504 /* RMCircle.m in Sources */,
2599740B12EB967600816331 /* RMSpatialCloudMapSource.m in Sources */,
DD55FD1612FB40E000B6FE24 /* RMMBTilesTileSource.m in Sources */,
+ 17157D9B133BBD0700E28941 /* RMFoundation.c in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -1117,7 +1203,66 @@
};
/* End PBXTargetDependency section */
+/* Begin PBXVariantGroup section */
+ 17157D8E133BBC8300E28941 /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 17157D8F133BBC8300E28941 /* en */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
/* Begin XCBuildConfiguration section */
+ 17157D97133BBC8300E28941 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(SDKROOT)/Developer/Library/Frameworks",
+ "$(DEVELOPER_LIBRARY_DIR)/Frameworks",
+ );
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "MapViewTests/MapViewTests-Prefix.pch";
+ GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_VERSION = com.apple.compilers.llvmgcc42;
+ INFOPLIST_FILE = "MapViewTests/MapViewTests-Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 4.3;
+ OTHER_LDFLAGS = (
+ "-framework",
+ SenTestingKit,
+ );
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = octest;
+ };
+ name = Debug;
+ };
+ 17157D98133BBC8300E28941 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(SDKROOT)/Developer/Library/Frameworks",
+ "$(DEVELOPER_LIBRARY_DIR)/Frameworks",
+ );
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "MapViewTests/MapViewTests-Prefix.pch";
+ GCC_VERSION = com.apple.compilers.llvmgcc42;
+ INFOPLIST_FILE = "MapViewTests/MapViewTests-Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 4.3;
+ OTHER_LDFLAGS = (
+ "-framework",
+ SenTestingKit,
+ );
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = octest;
+ };
+ name = Release;
+ };
2B2BD43B0F79AA1C00B8B9A7 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
@@ -1322,6 +1467,15 @@
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
+ 17157D96133BBC8300E28941 /* Build configuration list for PBXNativeTarget "MapViewTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 17157D97133BBC8300E28941 /* Debug */,
+ 17157D98133BBC8300E28941 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
2B2BD4400F79AA3200B8B9A7 /* Build configuration list for PBXAggregateTarget "Doxygen-Documentation" */ = {
isa = XCConfigurationList;
buildConfigurations = (
View
22 MapView/MapViewTests/MapViewTests-Info.plist
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.yourcompany.${PRODUCT_NAME:identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>BNDL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+</dict>
+</plist>
View
8 MapView/MapViewTests/MapViewTests-Prefix.pch
@@ -0,0 +1,8 @@
+//
+// Prefix header for all source files of the 'MapViewTests' target in the 'MapViewTests' project
+//
+
+#ifdef __OBJC__
+ #import <UIKit/UIKit.h>
+ #import "RouteMe.h"
+#endif
View
2  MapView/MapViewTests/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
View
37 MapView/RMFoundationTests.h
@@ -0,0 +1,37 @@
+//
+// RMFoundationTests.h
+//
+// Copyright (c) 2008-2011, Route-Me Contributors
+// All rights reserved.
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are met:
+//
+// * Redistributions of source code must retain the above copyright notice, this
+// list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above copyright notice,
+// this list of conditions and the following disclaimer in the documentation
+// and/or other materials provided with the distribution.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+// POSSIBILITY OF SUCH DAMAGE.
+
+
+#import <SenTestingKit/SenTestingKit.h>
+#import <UIKit/UIKit.h>
+
+
+@interface RMFoundationTests : SenTestCase {
+
+}
+
+@end
View
47 MapView/RMFoundationTests.m
@@ -0,0 +1,47 @@
+//
+// RMFoundationTests.m
+// MapView
+//
+// Copyright (c) 2008-2011, Route-Me Contributors
+// All rights reserved.
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are met:
+//
+// * Redistributions of source code must retain the above copyright notice, this
+// list of conditions and the following disclaimer.
+// * Redistributions in binary form must reproduce the above copyright notice,
+// this list of conditions and the following disclaimer in the documentation
+// and/or other materials provided with the distribution.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+// POSSIBILITY OF SUCH DAMAGE.
+
+#import "RMFoundationTests.h"
+
+@implementation RMFoundationTests
+
+- (void)testProjectedRectIntersectsProjectedRect {
+ RMProjectedRect r0022 = RMMakeProjectedRect(0.0, 0.0, 2.0, 2.0);
+ RMProjectedRect r0123 = RMMakeProjectedRect(0.0, 1.0, 2.0, 2.0);
+ RMProjectedRect r0325 = RMMakeProjectedRect(0.0, 3.0, 2.0, 2.0);
+ RMProjectedRect r1032 = RMMakeProjectedRect(1.0, 0.0, 2.0, 2.0);
+
+ STAssertTrue(RMProjectedRectInterectsProjectedRect(r0123, r1032), nil);
+ STAssertTrue(RMProjectedRectInterectsProjectedRect(r1032, r0123), nil);
+ STAssertFalse(RMProjectedRectInterectsProjectedRect(r0022, r0325), nil);
+ STAssertFalse(RMProjectedRectInterectsProjectedRect(r0325, r0022), nil);
+ STAssertTrue(RMProjectedRectInterectsProjectedRect(r0022, r0123), nil);
+ STAssertTrue(RMProjectedRectInterectsProjectedRect(r0123, r0022), nil);
+}
+
+@end
Please sign in to comment.
Something went wrong with that request. Please try again.